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
iSCSI target status dead - ESXi 4
Setting up Domain Trusts
mcafee EPO script to remove agent and virusscan
Blackberry Syncing Problem - "No Available Message Stores" error when synchronizing
last 3 rows returned in a group - using slq server 8.0.760
intuitive understanding of the area under the curve - again
How to disable use of USB flask drives?
Win 2003 server dns
Insert into MySQL Table from MSSQL Insert Trigger
Deleted Files, Who & When, Server 2008, NAS