0

I was wondering if its possible to execute a command e.g. start xxxxxxx

where xxxxxxx 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

1 Answer 1

2

If your file is called cmds.lst, a batch file containing

for /f %%a in (cmds.lst) do start %%a

should do the trick

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.