Microsoft
Software
Hardware
Network
Question : Use NET start
How to use net start command to work only if service is not running ?
when service already run; it will give an error message (already started) how to hide this error ?
i want to have batch file.
Thanks
Answer : Use NET start
The "stupid" approach, which is neverless the fastest and easist, is to issue the start command and suppress any error output:
net start MyService 2> nul > nul
If it is started already, nothing happens. No output shown and no error reported.
Random Solutions
SSIS/TSQL Three Part Naming for Temp Table
MS Access Table
Conditional selections in setup project
htaccess Partial Query String Rewrite
Customize Outlook Today by Adding Public Calendar
Need to monitor specific events in SCOM 2007 R2
ISAPI REWRITE PROBLEM. Getting a 500 internal server error. Need help figuring out why?
Having mail server go out a specific SonicWALL interface?
Import Word Doc with Line Numbers into Access
Server security analysis to determine patch level