SET Below is the magic happens : Find the drive letter which has volume name set as _label, and mount it to _ramdriveįOR /F "skip=1 tokens=1 delims=: " %%a IN ('wmic logicaldisk where "VOLUMENAME='%_label%'" get caption') DO ( subst %_ramdrive% %%a:\ if you want to copy some files or mount your cache folders, do it after this line. See the comments for more assign the key variables. (Update: Please note that batch script takes line-break as “end of command”, so if you find the script doesn’t work at your PC, try removing extra line-breaks. C:\StartUp.bat) with the following content: To make it simple, I post the walk-through here:Ĭreate a new. “R:”) that mounts to the dynamic drive letter (“K:”). “K:”) according to the disk label, then create a consistent drive letter (e.g. So my trick is: When the system starts, the script will find the dynamic RAMDisk drive letter (e.g. Thanks to the feature that Dataram RAMDisk allows users to specify a Drive Label and keep it consistent all the time. Instead, I write my own solution using just a 3-line (without comments) DOS batch script. It takes quite much overhead to load the disk image file on every booting.It creates a large disk image file (same size as the RAMDisk) on the harddisk, and.In the user manual, Dataram provides a solution through saving the RAMDrive into a drive image file once and loading it back on every time the computer starts. So I want the RAMDisk keeps a consistent drive letter all the time. This will be a big disaster because all the cache will be written into the USB / network drive instead of the RAMDisk. On the next morning if I have plugged in an USB drive (or assigned another network drive) before the RAMDisk being created, my USB / network drive will occupy the drive letter “K:” so the RAMDisk will become “L:”. So today I have “K:” as my RAMDisk and have my browser cache folder configured to “K:”. My only complain about Dataram RAMDisk is that the drive letter of the RAMDisk is dynamically assigned on each time it runs.
I have been using Dataram RAMDisk since I upgraded to 64bit Windows 7, and I’m totally satisfied with its performance and stability. If you are using a 32bit Windows, Dataram RAMDisk can access the RAM outside the address range(the so-called 4GB RAM limit in 32bit Windows) so your RAM wouldn’t be wasted. 4GB size, running in both 32-bit & 64bit Windows systems (Usually other RAMDisk solutions would charge quite much for a 64bit version.) with promising performance. One of the most popular RAMDisk solution is Dataram RAMDisk.
Disks larger than 4 GB require registration and a license which can be purchased.Using RAMDisk
Games Internet Explorer cache for faster web surfing Audio and Video editing CAD programs Software compilers Databases Speeding up CD duplication SETI processing TEMP files Swap space Web server cache Custom applications with high I/O, high bandwidth, or high security requirements Note: 4 GB disk size limit. Most users use RAMDisk to speed up applications like:
Some features not enabled and require the purchase of a license key to be enabled. It is offered as “freeware” for personal use and will allow you to create disks up to 1 GB in size.
RAMDisk is also great for storing frequently accessed data such as temp files, page files and database index files. The program is the right product for you if you have a disk I/O bound application that is small enough to fit in main memory. The more RAM your Windows computer has, the larger the RAM Disk you can create.
RAMDisk is a free software that takes a portion of your system memory and uses it as a disk drive.