[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
  1. @echo off
  2. for /f "delims=" %%i in (test.txt) do (
  3.     start "" "%%i"
  4. )
复制代码

TOP

回复 5# alpha


    把 start "" 删掉试试

TOP

回复 7# alpha


我这里测试没有问题

test.bat
  1. @echo off
  2. for /f "delims=" %%i in (test.txt) do (
  3.     "%%i"
  4. )
复制代码
test.txt
  1. C:\Program Files\WinRAR\WinRAR.exe
  2. C:\Program Files\Internet Explorer\iexplore.exe
复制代码

TOP

回复 12# alpha
  1. for /f "delims=" %i in (test.txt) do @"%i"
复制代码
我在CMD里面测试了,一切正常。

TOP

回复 14# Linuxer


    你是不是回复错人了?13楼的代码是在CMD里面执行的

TOP

返回列表