1
我想知道如果可以在Windows批處理中運行.txt文件中列出的所有程序。舉例來說,如果我有3個不同的文件,像這樣的文本文件:啓動文件列表中列出的所有文件(Windows批處理)
Example1.txt
Example2.txt
Example3.txt
是有可能在基於一次名單上運行這些程序的所有3?
我想知道如果可以在Windows批處理中運行.txt文件中列出的所有程序。舉例來說,如果我有3個不同的文件,像這樣的文本文件:啓動文件列表中列出的所有文件(Windows批處理)
Example1.txt
Example2.txt
Example3.txt
是有可能在基於一次名單上運行這些程序的所有3?
@echo off
setlocal
set "file_with_programs=c:\some.txt"
for /f "usebackq tokens=* delims=" %%# in ("%file_with_programs%") do (
start "" "%%~#"
)
endlocal
不知道這是你想要的列表那裏有文本文件,但不是programs.Change文件的路徑。
正是我所需要的。 – Jonthemanman 2014-09-25 19:37:45
如果答案令人滿意,您可以接受,我們都會收到一些積分。 – npocmaka 2014-09-25 19:39:08