I had the need to set a sleep timer at the end of a batch script to close the script 10 seconds after it finished. There used to be a sleep command that could be used in batch scripting but sadly that isn't the case anymore.
@echo off
For /l %%zin(10,-1,1)do(TITLE Drive Mapping -- closing in%%zs & ping -n 2 -w 1 127.0.0.1>NUL)Title Drive Mapping
Recently one of my clients had been notified by their ISP that they were being reported for spam. Up until now I had really only done some work on their main admin computer with some printer issues. At this point I proceed to install and run anti virus and anti spyware programs and cleaned up the machines. Several of them had Limewire installed with a ton of downloaded files. After a few days their ISP called again. At this point I decided it would be best to reinstall the machines since they haven't been touched in six years.