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
How can you search e-mail within Outlook 2010 and not use the index?
Outlook: Errors have been detected in the file
How do I delete all records from an ADODB recordset?
Where can I find a service manual for a Gateway MD2414u Laptop?
No Link Light - Qlogic QLA4010C iSCSI HBA in VMware VI3 ESX server
Initialization failed for opening on premisis exchange server
Firebird AutoID VB.net code
I need to change the color of a DataGridView scrollbar in C# WinForms
Multi Homed Windows 2008 Server
Oracle Build Table of tables