Command line switches
The RAM Disk package includes two executable files in the application folder that accept command line parameters:
ramdisk.exe /switch:data
ramdiskc.exe /switch:data
ramdisk.exe
The ramdisk.exe
executable manipulates the predefined RAM disk configuration accessible via the graphical user interface (GUI). Use it to add, remove, or alter your RAM disk setup. Any command issued with ramdisk.exe
modifies the current configuration, which is reflected within the GUI. These changes are persistent and will be restored upon the next system boot.
Switch | Description | Examples | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/import: |
Reads RAM disk definitions previously saved to a file by the File – Export Disks command. Disk definitions read from the file are appended to the existing ones and are not mounted. | /import: |
||||||||||||||||||||
/mount: |
Mounts an existing RAM disk. Specify all to mount all the existing RAM disks. |
/mount:R /mount:all |
||||||||||||||||||||
/unmount: |
Unmounts an existing RAM disk. Specify all to unmount all the existing RAM disks. Specify /force before /unmount for forced unmount. |
/unmount:R /force /unmount:all |
||||||||||||||||||||
/save: |
Saves an existing RAM disk to its associated image file. Specify all to save all the existing RAM disks. |
/save:R /save:all |
||||||||||||||||||||
/del: |
Deletes an existing RAM disk. Specify all to delete all the existing RAM disks. |
/del:R /del:all |
||||||||||||||||||||
/add:param= |
Adds a new RAM disk based on the following case-insensitive parameters:
|
/add:"letter=R, fs=exFAT, csize=16K, size=100M" /add:"letter=I, image=c:\image files\filename.img" /add:"type=boot, letter=B, fs=NTFS, size=50M, mount=no" |
ramdiskc.exe
The ramdiskc.exe
file (with the letter ‘c’ at the end of the filename) is a dedicated console tool designed for on-demand usage. It allows you to create and remove RAM disks directly from scripts and services without affecting the saved configuration displayed in the GUI. Disks created with ramdiskc.exe
are temporary and will be automatically removed on shutdown or reboot. To view its syntax, run ramdiskc.exe
in a command prompt without any parameters.
Switch | Description | Examples | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
/del: |
Deletes an existing RAM disk. The /force parameter can be used to delete the disk even if it has open files. |
/del:R /del:K /force |
||||||||||||||||
/add: |
Adds a new RAM disk with the following optional parameters:
|
/add:R /size:100m /fs:fat32 /add:K /size:1g /fs:ntfsc /label:MyCompressedDisk |