I was wondering if its possible to execute a command e.g. start xxxxxxx
where xxx开发者_开发问答xxxx is fed from a text file, so for example if the text file contained:
notepad
calc
putty
The following would be output in cmd:
start notepad
start calc
start putty
Can anyone let me know the easiest way to do this please
If your file is called cmds.lst, a batch file containing
for /f %%a in (cmds.lst) do start %%a
should do the trick
精彩评论