About

Using RAM Disk

Return to the product page

Command line switches

There is a set of command line switches that you can use to create, delete and manipulate RAM disks. These can be used as ramdiskws.exe /switch:data.

Switch
Description
Examples
/import:filename.xml 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:"C:\John Smith\test.xml"
/mount:driveletter Mounts an existing RAM disk. Specify all to mount all the existing RAM disks. /mount:R
/mount:all
/unmount:driveletter Unmounts an existing RAM disk. Specify all to unmount all the existing RAM disks. /unmount:R
/unmount:all
/del:driveletter Deletes an existing RAM disk. Specify all to delete all the existing RAM disks. /del:R
/del:all
/add:param=value, param=value,...

Adds a new RAM disk based on the following case-insensitive parameters:

Parameter
Description
type=[logon|boot] Disk type. Can be either logon-time disk or boot-time disk. The former is mounted upon user logon, the latter is mounted upon system boot. The default value is logon.
letter=[A-Z] Drive letter. Can be any available letter from A to Z. This parameter is required.
fs=[RAW,FAT,FAT32,NTFS] File system. Can be either RAW for no file system, FAT, FAT32 or NTFS. The default value is RAW.
image=imagefile.svi Path to an image file. Creates a RAM disk based on the image file specified.
size=100[K|M|G] Size of the disk. Can be specified as a number followed by a multiplier, e.g. 10M, or 1G. This value is required unless the image option is present.
label=disklabel Optional volume label. This value is only valid when the file system is FAT, FAT32 or NTFS.
save=[yes|no] Mark the volume as persistent. This value is only valid when an image file is used. The default value is no and changes are not saved back to the associated image file.
mount=[yes|no] Mount and make the disk available immediately. The default value is yes and the disk is mounted upon creation.

/add:"letter=R, fs=FAT32, size=100M"

/add:"letter=I, image=c:\image files\filename.svi"

/add:"type=boot, letter=B, fs=NTFS, size=50M, mount=no"

 

© SoftPerfect Research. All rights reserved.
© 2000–2012 SoftPerfect Research | Contact us | Terms of use | Privacy policy