Hi folks, I came across a very handy little tip the other day that works with *any*
set of Batch Commands that you want to run sequentially.

Now before you jump out and tell me “Mick, what are you doing?! Powershell is where
it’s at!”.yes yes I know. I’ve half the guys at the office telling me that too.

So onto the goodness on this one:

The key is

<cmd> && <cmd>

e.g.

net stop “Print Spooler” && net start “Print Spooler”

 

Blog Post by: Mick Badran