
假设文字是(这个文字是个变量,可以随时变更):E:\funny\haha.exe。
现在要求是cmd读入这个gun的txt文本,txt文本中有一个路径,然后运行该路径中的程序。
@ECHO OFF
FOR 祥旦/f "delims=" %%i in (c:doggun.txt) do (START 禅差"" "%%i")
PAUSE
请根据自己谨袭扰的文件路径修改.
假设gun.txt格式为:
C:Windows otepad.exe
C:Windowssystem32mspaint.exe
C:Windowssystem32calc.exe