标题:
为什么批处理换个地方就能正常运行?有图和源码
[打印本页]
作者:
ww111222
时间:
2007-8-22 23:11
标题:
为什么批处理换个地方就能正常运行?有图和源码
type install.bat
Quote:
@echo on
rem 检测备份分区 设置Drive为备份分区盘符
SET Drive=null
for %%z in (w v u t s r q p o n m l k j i h g f e d c) do if exist %%z:\nul call FindDrv.BAT %%z
if %Drive%==null goto _exit_find
Echo 备份分区为:%drive%:
:_exit_find
echo 不存在备份分区,安装中止!
pause
type finddrv.bat
Quote:
vol %1: |find "1KEYRESTORE"
if errorlevel 1 goto _exit
SET Drive=%1:
:_exit
我 用的 DOS7.1的启动盘, 并且 E盘 的卷标是:1keyrestore
hhwwll 制作的: 超级中文MS-DOS7.10启动盘
http://www.cn-dos.net/forum/viewthread.php?tid=17237&fpage=1
我在autoexec.bat 里把 这两个文件都复制到 虚拟盘X盘上,结果 执行的时候提示:
Error matching string
而所这两个 文件复制到 虚拟机上的 物理D盘上,就正常了,
这是为什么呢?
下面是两图的对比
附件 1:
1key1.jpg
(2007-8-22 23:11, 36.7 K,下载次数: 1)
附件 2:
1key2.jpg
(2007-8-22 23:11, 31.44 K,下载次数: 1)
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5