How to string together multiple commands in the Run window?
October 20, 2009 10:16 AM Subscribe
I would like to do a string of commands directly from the "Run..." window in windows. I know you can start this by using "cmd /k" followed by the first command, but how do you add additional commands?
Specifically, I would like (from a single Run... window) to be able to do the following:
1. open a cmd prompt window
2. Change the color to 2F
3. type "ipconfig"
4. ping yahoo.com
The way I understand it, I can do #1 an #2 by typing "Cmd /K Color 2F" into the Run dialog. (windows- R shortcut)
But is there a way I can also tack on #3 and #4 onto the single line Run window? I vaguely remember that there was something you could do to seperate single commands sent to CMD. Something like "CMD \k Color 2F & IPCONFIG & ping yahoo.com", but I know the & character isn't right.
Thanks
Specifically, I would like (from a single Run... window) to be able to do the following:
1. open a cmd prompt window
2. Change the color to 2F
3. type "ipconfig"
4. ping yahoo.com
The way I understand it, I can do #1 an #2 by typing "Cmd /K Color 2F" into the Run dialog. (windows- R shortcut)
But is there a way I can also tack on #3 and #4 onto the single line Run window? I vaguely remember that there was something you could do to seperate single commands sent to CMD. Something like "CMD \k Color 2F & IPCONFIG & ping yahoo.com", but I know the & character isn't right.
Thanks
This post was deleted for the following reason: at poster's request -- mathowie
Response by poster: ah, never mind, I had the /k switched backwards.... Thanks bitdamaged
posted by crazyray at 10:21 AM on October 20, 2009
posted by crazyray at 10:21 AM on October 20, 2009
Actually it works if you do ipconfig & ping yahoo.com it works but not with the color command.
posted by bitdamaged at 10:22 AM on October 20, 2009
posted by bitdamaged at 10:22 AM on October 20, 2009
Response by poster: Really? Mine worked even with the color command if I type CMD /k Color 2F & IPCONFIG & ping yahoo.com
(notice the /k rather than \k)
posted by crazyray at 10:35 AM on October 20, 2009
(notice the /k rather than \k)
posted by crazyray at 10:35 AM on October 20, 2009
ah nm I wasn't running it from the run prompt but from the command line itself - so I had to not do he first "cmd"
posted by bitdamaged at 10:40 AM on October 20, 2009
posted by bitdamaged at 10:40 AM on October 20, 2009
This thread is closed to new comments.
posted by bitdamaged at 10:20 AM on October 20, 2009