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
RPC through HTTP keeps prompting for pw on Exchange 2010
I want to make Liberty reserve API
Is exercising in an air conditionedroom a good idea?
Schedule Task "Could not start"
xp pro machine as print server bt cant print from windows 7 PC
Calling IE to run on second monitor in batch file log in script
COM Interfaces in .NetQuestion:
Help with Lucene query in Alfresco
How to access class due to 'cannot instantiate abstract class' error
Exchange 2003 on SBS 2003 Active Sync and Blackberry/iPhone Configuration Help Needed