标题:
怎样用批处理判断文件的存在?
[打印本页]
作者:
terse
时间:
2006-11-30 06:50
标题:
怎样用批处理判断文件的存在?
我想运行A.exe,但需要B.dll文件,我想先判断某目录是否存在B.dll,有的话运行A.exe,没有的话,COPY B.dll至c:或d: 然后运行A.exe
作者:
vkill
时间:
2006-11-30 06:52
if /?
作者:
terse
时间:
2006-11-30 07:19
c:\>if /?
在批程序中执行条件处理。
IF [NOT] ERRORLEVEL number command
IF [NOT] string1==string2 command
IF [NOT] EXIST filename command
怎么用呢?谢谢!
作者:
tao0610
时间:
2006-11-30 08:14
if exist
作者:
terse
时间:
2006-11-30 20:28
if exist %windir%\b.dll goto b
goto c
:c
copy F:\Progra~1\game\b.dll %windir%
:b
@start /min/b "" "F:\Program Files\game\a.exe"
exit
帮我看看是否这样写呢
欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/)
Powered by Discuz! 2.5