@ECHO OFF ECHO. Restart IIS... net stop w3svc net start w3svc ECHO. Log this action to a file... date /t >> c:\log.txt time /t >> c:\log.txt ECHO. ECHO. Done! ECHO. PAUSE EXIT REM remove the PAUSE if you schedule this batch using Scheduled Tasks