Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要帮助来创建循环。循环应该将文件“filenames.txt”中的第一个字符串设置为变量,然后执行包含该变量的脚本,并重复执行,直到完成“filenames.txt”中的所有字符串。
尝试这个:
for /f %%a in (filenames.txt) do ( call "my script.bat" "%%~a" )