08 April, 2012

stacking DOS commands with &&

The double ampersand can be used to 'stack' DOS commands:
net stop spooler && net start spooler 
dir c:\ && dir d:\
dir c:\ && net stop spooler && net start spooler

And so on...

No comments:

Post a Comment