@ECHO Off
PROMPT $P$G
REM By Dave
REM Load the RAM drive
REM 4 MB Ramdrive made to drive X
SET RAMDRIVE=X
XMSDSK 4096 X: /y
SET TEMP=%RAMDRIVE%:\
SET TMP=%RAMDRIVE%:\
ECHO *** Be Patient While we Copy Some Files ****
ECHO *** Thanks to use SFDISK***
Copy A:\pkunzip.exe X:\
X:
pkunzip A:\files.zip X:\
X:\SFDISK.exe
这是一个AUTOEXEC。BAT文件的内容,其作用就是虚拟一个软驱为X,把PKUNZIP.exe复制到X:里解压缩files.zip到X:,然后执行SFDISK.EXE
可是@ECHO Off
PROMPT $P$G
REM By Dave
REM Load the RAM drive
REM 4 MB Ramdrive made to drive X
SET RAMDRIVE=X
XMSDSK 4096 X: /y
SET TEMP=%RAMDRIVE%:\
SET TMP=%RAMDRIVE%:\
这些东西我不知道具体是什么意思,估计和分配内存有关系,哪位达人帮忙解释一下啊,不胜感激了!!!!!谢谢
给你说下吧:
@ECHO Off 关闭命令回显
PROMPT $P$G 设置命令提示符格式为“盘符:>”
REM By Dave
REM Load the RAM drive
REM 4 MB Ramdrive made to drive X 这三行为注释,不在批处理中执行
SET RAMDRIVE=X
XMSDSK 4096 X: /y 这两行设置大小为4096KB盘符为“X:”的虚拟盘
SET TEMP=%RAMDRIVE%:\
SET TMP=%RAMDRIVE%:\这两行设置临时环境变量为虚拟盘的根目录