PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 CMD Promt Net Start

Reply

Net Start

 
Thread Tools Rate Thread
Old 01-10-2003, 11:07 PM   #1
Ken
Guest
 
Posts: n/a
Default Net Start


I am not sure of the proper place to post this.

I am looking for the proper syntax do perform a net start from the command
line with parameters. Does anyone know the syntax?

Example: Net Start "MyService C:\MyParamsFile.config"

Thanks in advance!


Ken


  Reply With Quote
Old 02-10-2003, 12:06 AM   #2
Ritchie
Guest
 
Posts: n/a
Default Re: Net Start

"Ken" <admin@kabwebs.com> wrote in message news:#IrA6$FiDHA.2512@TK2MSFTNGP09.phx.gbl...
> I am not sure of the proper place to post this.


It's the right place

> I am looking for the proper syntax do perform a net start from the command
> line with parameters. Does anyone know the syntax?


Lots of examples here:-
http://groups.google.com/groups?q=c...3Astart+service

--
Ritchie, undo for mail


  Reply With Quote
Old 02-10-2003, 12:36 PM   #3
Walter Schulz
Guest
 
Posts: n/a
Default Net Start


>I am looking for the proper syntax do perform a net start

from the command
>line with parameters. Does anyone know the syntax?
>
>Example: Net Start "MyService C:\MyParamsFile.config"


NET START won't do the job. Take a look into
HKLM\system\CurrentControlSet\Services\<internal name for
MyService>
You will find an entry named "Imagepath" which consists of
the "path\<file name>" (required) and additional
parameters (if any). You will find an example under
MSIServer.

"Net start" will not be able to append anything to the
Imagepath entry.

Possible solutions:
Create a reg file with the entry you want to use and run
this batch:

REGEDIT /S myconfig.reg
net start myservice

Or use SC.EXE like
SC CONFIG MYSERVICE binPath=<as wanted>
net start Myservice

Ciao, Walter
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off