Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Temporary file in storage

03 May 2015   #1
swiftie

Windows 7 Ultimate x64
 
 
Temporary file in storage

Yesterday, while investigating RAMdisks, and files in storage for temporary files I came across a couple of options on the file open call that could be used. One was "DeleteOnClose".

I can't recall the other option, but the explanation stated "the effect of this is that the file is kept only in RAM". I seem to recall that it had something to do with temporary files.

Can anyone help me locate this other option?

I've looked at every page in my browser history, but for some reason I haven't found the page...


My System SpecsSystem Spec
.
03 May 2015   #2
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 
Windows Temp Folder?

Sounds like the option to move Windows Temp Folder onto the disk. If you're going to mess about with RAMdisks I suggest having a system image backup and restore option in place before going ahead.
Temporary file in storage-ram-disk.jpg


My System SpecsSystem Spec
03 May 2015   #3
swiftie

Windows 7 Ultimate x64
 
 

What I saw was an option on the File Open call (or maybe the File Create). "DeleteOnClose" is obviously a File I/O option.

The reason that I'm interested in these options is because I'm hoping to get the capability of temporary files in RAM implemented in my programming language of choice. Doing the research on what it involves is half of the battle.

I'm happy enough with my Temp folder as it is, though I'm tempted to move it from C: (SSD boot drive) to D: (Internal Data drive).
My System SpecsSystem Spec
.

03 May 2015   #4
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

Okay I think that's probably beyond my understanding but thanks for making it clear!
My System SpecsSystem Spec
03 May 2015   #5
txwizard

Windows 7 SP Professional 1, 64 bit
 
 

Quote   Quote: Originally Posted by swiftie View Post
Yesterday, while investigating RAMdisks, and files in storage for temporary files I came across a couple of options on the file open call that could be used. One was "DeleteOnClose".

I can't recall the other option, but the explanation stated "the effect of this is that the file is kept only in RAM". I seem to recall that it had something to do with temporary files.

Can anyone help me locate this other option?

I've looked at every page in my browser history, but for some reason I haven't found the page...
Since I am somewhat familiar with the CreateFile API function, I read your inquiry with interest. Although I may have missed it (as frequently I do), I didn't see a "delete on close" flag, although such a flag sounds familiar to me, too. Nevertheless, i found another flag that may come closer to meeting your requirements, and it is one of which I long ago made a mental note to investigate further. According to the official CreateFile documentation at https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx, I read the following paragraph.

Quote:
Specifying the FILE_ATTRIBUTE_TEMPORARY attribute causes file systems to avoid writing data back to mass storage if sufficient cache memory is available, because an application deletes a temporary file after a handle is closed. In that case, the system can entirely avoid writing the data. Although it does not directly control data caching in the same way as the previously mentioned flags, the FILE_ATTRIBUTE_TEMPORARY attribute does tell the system to hold as much as possible in the system cache without writing and therefore may be of concern for certain applications.
I suspect this this flag comes closer to meeting your requirements.
My System SpecsSystem Spec
04 May 2015   #6
swiftie

Windows 7 Ultimate x64
 
 

Txwizard: file_attribute_temporary is exactly what I was trying to recall. Thank you!

The description is exactly as I remember it. I have 16GB RAM, so most of my temporary files would fit.

I'm looking for a neat solution to capturing the file output from utilities like wget, and this attribute would allow the authors of my favourite programming language to implement a robust but very fast temporary file mechanism.

You've given me the facts that I needed to construct a strong "request for enhancement".
My System SpecsSystem Spec
05 May 2015   #7
txwizard

Windows 7 SP Professional 1, 64 bit
 
 

Quote   Quote: Originally Posted by swiftie View Post
file_attribute_temporary is exactly what I was trying to recall. Thank you!

You've given me the facts that I needed to construct a strong "request for enhancement".
Here's to an enthusiastically accepted request.

BTW, what is your favorite programming language?
My System SpecsSystem Spec
05 May 2015   #8
swiftie

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by txwizard View Post
BTW, what is your favorite programming language?
Open Object Rexx
It was developed with ease of use as one of its' main objectives; you could read and understand the Language Reference in one day.
I'd used several languages before I encountered REXX (ranging from BASIC to S/370 Assembler) but it supplanted all of those. So much so that I've found it impossible to learn languages more appropriate to some environments (I've abandoned attempts at PERL, C).
My System SpecsSystem Spec
05 May 2015   #9
ethan11james

Windows 7 32bit
 
 

Quote   Quote: Originally Posted by Callender View Post
Sounds like the option to move Windows Temp Folder onto the disk. If you're going to mess about with RAMdisks I suggest having a system image backup and restore option in place before going ahead.
Attachment 357983
thanks for the solution its really helpful for me. i also looking for it and finally got solution with this post
My System SpecsSystem Spec
Reply

 Temporary file in storage




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
NSIS error writing temporary file. make sure your temp folder is valid
I've had this problem going on for 5 months now , every now and then i get this error , i have 2 drivers on my pc , one ssd for OS and some programs and an HDD for games and mass storage. I get this whenever i try to run a setup from inside the downloads folder located on the HDD , the D disc....
Software
IE 11 Temporary Internet File corrupted and cannot fix
Hello, I've been going bonkers over the past few days. I did a successful cloning of my HDs to SSDs. But for some reason IE 11 and Outlook 2010 are having issues - everything else is good to go. I cannot link the IE temporary internet file folder. I have: 1) deleted the folder via another...
Browsers & Mail
online file storage?
Hey 7F, Can anyone recommend any good online file storage's free of course. I need somewhere to store my files and the only place I can think of is DropBox but am sure there are more out there? Thanks
General Discussion
IE cookies storage location can be kept seperate from temporary files?
I am preparing my system for SSD migration, my hdd is getting very grindy and slow even simply browsing, eg. moving to different parts of a youtube video pauses for a second with hdd activity. So I moved the IE temp folder to a ram disk I made (this also save some writes on my new ssd when I...
Browsers & Mail
Is this a good setup for backup and file storage?
Hello, :D I just went out and purchased a Seagate FreeAgent GoFlex Desk 2 TB USB 2.0 hard drive for about $100 because I thought it was too good to pass up. Now I am having second thoughts, and wondering if I should return it, or if I got a good deal. I need to upgrade my Windows 7 OS to 64...
Backup and Restore
Windows Update file storage????
Hi all, just wanted to know if there was a way I could save all of the updates required for Win7 to a portable media device to save having to download them all over again. I have a low amount of data each month to use, and when doing a clean install, it uses a huge chunk of it. Thanks in advance....
Windows Updates & Activation


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:30.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App