New
#1
Shortcut with 2 commands
Is it possible to run more than one batch file command in a shortcut? I have tried a couple of thins and they did not work.
Example:
Code:cmd /c start program cmd /c start another program
Is it possible to run more than one batch file command in a shortcut? I have tried a couple of thins and they did not work.
Example:
Code:cmd /c start program cmd /c start another program
I don't think you can put two commands in one shortcut, but you could write a simple batch file to call both programs and shortcut to that batch file.
Or if I'm not following right, are you saying you can't write a batch file that calls two programs?
Either way, check out this thread: Batch Files - Start Multiple Programs At Once
I didn't think it was possible. My goal was to keep the command window out of view. I tried using a shortcut set to open the window minimized, but that 2 files as you indicated. Oh well... thanks anyway.
You can use multiple commands separated by the command separator && for string, but you must enclose them in quotation marks (for example, "command&&command&&command").cmd /c start program & start another program
You can run a batch file that will execute as many programs as you want. Use the Echo Off to keep the batch file "silent". If you must use the CMD command, use /k and /q parameters to run and continue and echo off respectively.
Forgot to add the link to the CMD syntax. http://technet.microsoft.com/en-us/l.../bb490880.aspx
The reason I was avoiding "/k" is that the command window stays open.