『楼 主』:
最好的内存虚拟盘软件XMSDSK的使用(原创)
使用 LLM 解释/回答一下
随着时代的发展,电脑的内存越来越大,从原来的1M、2M、4M等发展到现在的128M、256M、512M,甚至更大。因此,合理分配和使用内存是非常重要的,以避免不必要的浪费。而且,内存和一般的外部存储设备,如大家通常使用的磁盘(包括硬盘、光盘等)相比,有着众多的优点,比如内存的速度非常快,通常比后者快上好几十倍;磁盘的容量是有限的,尤其是软盘,一张软盘的大小一般不过1.44M,因此启动盘中往往放不下所需的程序。因此,如果能够将内存当作磁盘设备来存放文件和数据的话,那无疑可以大大提高操作的速度、效率和方便性,而且可以让内存发挥最大的效用,即有效地使用内存。
为此,人们开发出了不少内存虚拟盘程序,例如DOS中自带的VDISK.SYS、RAMDRIVE.SYS等等。不过,这些程序都有一些缺点,例如它们需要在CONFIG.SYS文件中加载,而不能在DOS命令行上直接加载;一旦加载就不可调整内存盘的大小或删除;内存盘有容量限制,通常不能超过64M;而且它们自己也占用较多的常规内存。现在终于有人开发出了解决了以上所有问题的内存虚拟盘程序,那就是下面要介绍的XMSDSK(可在“磁盘工具”中下载)。
XMSDSK是一个较新的程序,而且相当强大实用和稳定。它是Furd内存工具包中的一个,故名思议,就是用XMS内存创建磁盘。因此,它必须在有XMS内存的情况下才能使用,通常只要加载DOS自带的HIMEM.SYS程序(如果是MS-DOS的话,最好使用7.10或以上版本,以让HIMEM.SYS支持64M以上的XMS内存),然后就可以随便使用它了。XMSDSK的好处太多了,比如除了可以在CONFIG.SYS中加载以外,还可以在命令行方式下无限次动态调节内存盘的大小或拆卸。它占用内存相当少,才几百字节的低端内存,而且能够自动调入到UMB(上位内存块),而不需用LH命令。它支持极大的内存(目前高达2G),因此比如我们有512M的内存,甚至可将所有的XMS内存都虚拟成磁盘。如果将它用于启动盘中的话,可以为此启动盘增色不少。它还有个非常有用的用途,因为有些软件,例如一些游戏软件(如仙剑奇侠传)等,只能在32M以下的内存中运行,这时就可使用XMSDSK来安装内存磁盘使空余XMS内存小于32M,让那些软件能正常运行。最重要的是,它使用起来非常简单,下面就来介绍一下它的实际使用方法。 XMSDSK的使用语法如下:
XMSDSK 其中,内存盘大小用KB来表示,例如4就表示4K,1024就表示1024K=1M等等,如果没有指定的话,会建立一个0K的内存盘。驱动器表示要指定的内存盘的驱动器字母,若无的话它会自动使用下一个驱动器字母。例如,如果目前驱动器只有A盘、B盘、C盘和D盘的话,则会自动将内存盘加载到E盘上。选项有以下:
/?: 查看命令行帮助;
/Y: 当执行操作时,不必进行确认,即默认为“是(Yes)”;
/U: 将内存盘拆卸,并退出内存。
/T: 将内存盘定位于XMS内存的顶部;
/C: 指定内存盘中扇区的簇大小。
而通常只用到它的/Y和/U选项。
当使用不带任何参数和选项的方法运行XMSDSK,即直接输入XMSDSK命令时,若XMSDSK当前已加载了的话,会提示您是否加载它;否则,它会自动显示出已加载的内存盘的状态信息,如内存盘的大小。
下面就来举一个XMSDSK使用的例子。例如,现在想建一个5M的内存盘,然后调整为10M,最后删除此内存盘以释放驱动器字母和使用的内存,而且当安装、调整和删除时不进行确认操作,那么就可以在DOS命令行下依次输入以下命令: 1:XMSDSK 5120 /Y(建立5M的内存盘)
2:XMSDSK 10240 /Y(将已建立的5M内存盘的大小调整为10M)
3:XMSDSK /U /Y(删除已加载的内存盘) 大家看,是不是非常方便?
总之,XMSDSK是目前DOS下最好最强大的用XMS内存虚拟磁盘的工具,它是RAMDRIVE.SYS等其它同类软件的最佳替代品。而且除了XMSDSK,还有同一作者出的与之对应的EMSDSK,即用EMS内存虚拟磁盘的工具,具体用法可以说和上面的XMSDSK是完全相同的,在此就不再详细介绍了。
With the development of the times, the memory of computers has become larger and larger, developing from the original 1M, 2M, 4M, etc. to the current 128M, 256M, 512M, or even larger. Therefore, it is very important to reasonably allocate and use memory to avoid unnecessary waste. Moreover, compared with general external storage devices, such as the disks (including hard disks, optical disks, etc.) that everyone usually uses, memory has many advantages. For example, the speed of memory is very fast, usually dozens of times faster than the latter; the capacity of disks is limited, especially floppy disks. The size of a single floppy disk is generally only about 1.44M, so the required programs are often not placed in the boot disk. Therefore, if memory can be used as a disk device to store files and data, it will undoubtedly greatly improve the operation speed, efficiency, and convenience, and can make the memory play its maximum utility, that is, effectively use the memory.
For this reason, people have developed many memory virtual disk programs, such as VDISK.SYS and RAMDRIVE.SYS that come with DOS. However, these programs have some drawbacks. For example, they need to be loaded in the CONFIG.SYS file and cannot be directly loaded on the DOS command line; once loaded, the size of the memory disk cannot be adjusted or deleted; the memory disk has a capacity limit, usually not exceeding 64M; and they themselves occupy more conventional memory. Now someone has finally developed a memory virtual disk program that solves all the above problems, which is the XMSDSK introduced below (available for download in "Disk Tools").
XMSDSK is a relatively new program and is quite powerful, practical, and stable. It is a part of the Furd memory toolkit, which means it creates a disk using XMS memory. Therefore, it must be used when there is XMS memory. Usually, as long as the DOS-built-in HIMEM.SYS program is loaded (if it is MS-DOS, it is best to use version 7.10 or above to make HIMEM.SYS support XMS memory above 64M), then it can be used casually. There are too many benefits of XMSDSK. For example, in addition to being able to be loaded in CONFIG.SYS, it can also dynamically adjust the size of the memory disk or disassemble it infinitely in the command line mode. It occupies very little memory, only a few hundred bytes of low-end memory, and can be automatically loaded into UMB (upper memory block) without using the LH command. It supports extremely large memory (currently up to 2G). Therefore, for example, if we have 512M of memory, we can even virtualize all XMS memory into a disk. If it is used in a boot disk, it can add a lot to this boot disk. It also has a very useful use. Because some software, such as some game software (such as "Chinese Paladin"), can only run in memory below 32M. At this time, XMSDSK can be used to install a memory disk to make the free XMS memory less than 32M, so that those software can run normally. The most important thing is that it is very simple to use. The actual usage method will be introduced below. The usage syntax of XMSDSK is as follows:
XMSDSK
Among them, the memory disk size is expressed in KB. For example, 4 means 4K, 1024 means 1024K = 1M, etc. If not specified, a 0K memory disk will be created. The drive indicates the drive letter of the memory disk to be specified. If not, it will automatically use the next drive letter. For example, if there are only drives A, B, C, and D currently, the memory disk will be automatically loaded to drive E. The options are as follows:
/? : View command line help;
/Y : When performing an operation, no confirmation is required, that is, default to "Yes";
/U : Disassemble the memory disk and exit the memory;
/T : Locate the memory disk at the top of XMS memory;
/C : Specify the cluster size of the sectors in the memory disk.
And usually only the /Y and /U options are used.
When running XMSDSK without any parameters and options, that is, directly entering the XMSDSK command, if XMSDSK is currently loaded, it will prompt you whether to load it; otherwise, it will automatically display the status information of the loaded memory disk, such as the size of the memory disk.
Now let's give an example of using XMSDSK. For example, now I want to create a 5M memory disk, then adjust it to 10M, and finally delete this memory disk to release the drive letter and the used memory, and no confirmation operation is required when installing, adjusting, and deleting. Then the following commands can be entered in sequence on the DOS command line:
1: XMSDSK 5120 /Y (Create a 5M memory disk)
2: XMSDSK 10240 /Y (Adjust the size of the already created 5M memory disk to 10M)
3: XMSDSK /U /Y (Delete the loaded memory disk)
Everyone, isn't it very convenient?
In conclusion, XMSDSK is currently the best and most powerful tool for virtualizing disks using XMS memory under DOS. It is the best substitute for other similar software such as RAMDRIVE.SYS. Moreover, in addition to XMSDSK, there is EMSDSK corresponding to it developed by the same author, which is a tool for virtualizing disks using EMS memory. The specific usage can be said to be exactly the same as the above XMSDSK, and it will not be introduced in detail here.
|