Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to make certain directories in Windows Vista/7 "virtual" so they are stored completely in memory and emptied when the machine is powered-down. With Linux, you just need to add a line in your fstab file to mount a particular directory as tmpfs. Is there some equivalent for Windows? I know there are tools like RAMDisk, but they mount a new virtual disk which is not what I want. I want to be able to map a directory like C:\Users\You\Documents\Tmp to be stored in RAM only.

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Probably the functionality you are looking for is RamDisk. It enables you to create a virtual disk of the memory. There's quite good info on a free ramdisk, that I've used before, here. If you also want to be able to save the data on the virtual drive upon shutdown and restore it on restart, I'd recommend a more sophisticated, though non-free, RamDisk Plus from SuperSpeed (google it) - very useful. I'm not sure it's able to make some specific folders virtual, though.

share|improve this answer
    
As I said, I don't want a separate virtual drive, I want to make folders on my C:\ drive virtual. –  bert Dec 2 '10 at 21:40
    
One way would be to combine RamDisk with Windows symbolic link functionality, i.e. linking the directory to the virtual drive, for example using a tool from here: technet.microsoft.com/en-us/sysinternals/bb896768.aspx . –  aliz_bazar Dec 2 '10 at 22:45
    
Thanks! That's what I need: junction + some type of RAM disk. Just tried it out and it worked perfectly. –  bert Dec 2 '10 at 23:08

I have never used it, but I have heard of others using IMDisk.

There is no built in way to do it, like there is with Linux. There are also Commercial Alternatives.. this one gives you a 4GB ramdrive free, to go bigger, you need a license.

share|improve this answer

Do you actually want it's contents physically stored in RAM, or are you more going after a folder which gets emptied between boots? Which is the goal and which is the method? If you're simply looking for a folder which empties between boots, you could always simply write a batch file to do this and stick it in your startup. Such a batch would look something like:

DEL /F /S /Q "C:\My Folder\*.*"

This would do it on startup obviously, not on shutdown, but I believe there is a "shutdown scripts" property available through group policy editor, but I have never used a shutdown script, so have no info on how well they work or not.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.