I recently learned this little trick, and it’s been very helpful for me when troubleshooting or implementing configuration changes. You can enter multiple DOS commands on the same line by separating them with the ‘&&’ identifier. For example:
net stop smtpsvc && net start smtpsvc
http://simultaneouspancakes.com/Int/
I recently learned this little trick, and it’s been very helpful for me when troubleshooting or implementing configuration changes. You can enter multiple DOS commands on the same line by separating them with the ‘&&’ identifier. For example:
net stop smtpsvc && net start smtpsvc
Entering that command at a command prompt will stop the SMTP service and then restart it again. The second command doesn’t start until the first has fully completed.
This has been indispensible when I’ve been troubleshooting ISA over a Terminal Services connection. Occasionally you have to restart the ISA services to implement a configuration change. If you stop the ISA services manually while connected over TS, your connection will get dropped and you cannot reconnect. However, restarting the services using this command line trick will momentarily interrupt your connection, but it will get restored as soon as the services start again.