[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[文本处理] 判断文件是否存在的批处理哪里错,为什么不运行?

  1. if exist  "%userprofile%\desktop\1.exe" start c:\win7\11.exe
  2. if exist  "%userprofile%\desktop\3.exe" start c:\win7\33.exe
  3. if exist  "%userprofile%\desktop\2.exe" start c:\win7\22.exe
复制代码
哪里错了,只运行第一个,后面 的都不运行

  1. if exist "%userprofile%\desktop\1.exe" start "" "c:\win7\11.exe"
  2. if exist "%userprofile%\desktop\3.exe" start "" "c:\win7\33.exe"
  3. if exist "%userprofile%\desktop\2.exe" start "" "c:\win7\22.exe"
  4. pause
复制代码
看看是否有报错信息
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

TOP

返回列表