@echo off rem Path must be set to the EzMTS install directory set ppath=c:\progra~1\ezmts rem rem rem if "%1"=="INSTALL" goto I1 if "%1"=="REMOVE" goto I2 if "%1"=="START" goto S2 if "%1"=="STOP" goto S1 if "%1"=="WAIT" goto S1 goto bad :I1 echo Installing MTSSmtp %ppath%\MTSSmtp.exe -install echo Installing MTSPop3 %ppath%\MTSPop3.exe -install echo Installing MTSAgent %ppath%\MTSAgent.exe -install goto S2 :I2 %ppath%\MTSSmtp.exe -remove %ppath%\MTSPop3.exe -remove %ppath%\MTSAgent.exe -remove goto exitit :S1 NET STOP "Mail Transport SMTP Server" NET STOP "Mail Transport Agent" NET STOP "Mail Transport POP3 Server" echo Server Stopped. if "%1"=="STOP" goto exitit pause :S2 NET START "Mail Transport SMTP Server" NET START "Mail Transport Agent" NET START "Mail Transport POP3 Server" echo Server Started. goto exitit :bad echo SYNTAX IS echo EZMTS [START] [STOP] [WAIT] :exitit echo Finished. pause