@REM This will restart all Exchange 5.5 Service plus McAfee Antivirus services @REM The STOP order is: @rem 1.- Microsoft Exchange Message Transfer Agent 2.- McAfee GroupShield for Exchange 5.5 @rem 3.- McAfee GroupShield Message Body Scanner 4.- McAfee GroupShield On-Line Update @rem 5.- McAfee GroupShield Store Post 6.- Microsoft Exchange Information Store @rem 7.- McAfee GroupShield Store Pre 8.- Microsoft Exchange Directory @rem 9.- Microsoft Exchange System Attendan @rem OR the START Will be in reverse order... @echo off cd\ cls @ECHO. @ECHO Would like to START(A) or STOP(B) the Ex5.5 + AV Services? @echo Type (A or B) then pressing Enter, and Ctrl+Z, Enter. :: Only one single command line is needed to receive user input FOR /F "tokens=*" %%A IN ('TYPE CON') DO SET INPUT=%%A :: Use quotes if you want to display redirection characters as well ECHO You typed: "%INPUT%" IF "%INPUT%"=="A" GOTO A IF "%INPUT%"=="B" GOTO B GOTO END :A @echo Starting Services... @echo Are you sure? (CTRL-C to Cancel) pause net start MSExchangeSA net start MSExchangeDS net start AvCtrlEsePre net start MSExchangeIS net start AvCtrlEsePost net start AVUPDService net start AVBdyScnService net start AVExch32Service net start MSExchangeMTA GOTO END :B @echo Stopping Services... @echo Are you sure to STOP Exchange? (CTRL-C to Cancel) pause net stop MSExchangeMTA net stop AVExch32Service net stop AVBdyScnService net stop AVUPDService net stop AvCtrlEsePost net stop MSExchangeIS net stop AvCtrlEsePre net stop MSExchangeDS net stop MSExchangeSA GOTO END :END @echo bye now... pause exit