How do I run two commands in one line in Windows CMD?
Like this on all Microsoft OSes since 2000, and still good today: dir & echo foo If you want the second command to execute only if the first exited successfully: dir && echo foo The single ampersand (&) syntax to execute multiple commands on one line goes back to Windows XP, Windows 2000, and some … Read more