Vdisk. sys and ramdrive. sys in DOS. They must be in config. the sys file cannot be loaded directly on the DOS command line. Once loaded, the memory disk size cannot be adjusted or deleted. The memory disk has a capacity limit, which generally cannot exceed 64 MB .. Xmsdsk has many advantages. For example, in addition to loading in config. sys, xmsdsk can also be used in command line mode.Unlimited dynamic memory Adjustment. It occupies a small amount of memory, only a few hundred bytes of low-end memory, and can be automatically transferred to umb (upper memory block ).
The syntax for xmsdsk is as follows:
Xmsdsk [memory disk size] [Drive] [Option]
The memory disk size is expressed in KB. For example, 4 indicates 4 K and 1024 indicates 1024 K = 1 M. If not specified, a 0 K memory disk is created. The drive represents the letter of the drive to which the memory disk is to be specified. If there is no drive, it uses the next letter automatically. For example, if the current drive only has disk A, disk B, disk C, and disk D, the memory disk is automatically loaded to disk E. The options are as follows:
/? : View the command line help;
/Y: When performing the operation, you do not have to confirm it. That is, the default value is "yes )";
/U: remove the memory disk and exit the memory.
/T: place the memory disk on the top of the XMS memory;
/C: Specify the cluster size of the sector in the memory disk.
Generally, only the/y and/u options are used.
When xmsdsk is run using a method without any parameters or options, that is, when xmsdsk is directly input, if xmsdsk is already loaded, you will be prompted whether to load it; otherwise, it automatically displays the status information of loaded memory disks, such as the memory disk size.
The following is an example of xmsdsk. For example, if you want to create a memory disk of 5 MB, adjust it to 10 MB, and delete the memory disk to release the letter of the drive and the memory used, if you do not confirm the installation, adjustment, or deletion, enter the following commands in the doscommand line:
1: xmsdsk 5120/Y (create a 5 M memory disk)
2: xmsdsk 10240/Y (adjust the size of the created 5 M memory disk to 10 m)
3: xmsdsk/u/Y (delete the loaded memory disk)
4: xmsdsk 4096% ramdrv %/y/T
Create a 4 m memory disk, % ramdrv %: Drive/y/T indicates that the memory disk is second only to the top of the XMS memory
In short, xmsdsk is the best and most powerful tool for using XMS memory Virtual Disks in DOS. It is ramdrive. sys and other similar software are the best alternatives. In addition to xmsdsk, there is also the corresponding emsdsk from the same author, that is, the tool for using the EMS memory virtual disk. The specific usage can be said to be exactly the same as the xmsdsk above.