Page 1 of 1

Stop and start service

Posted: Mon May 15, 2006 2:13 am
by bernaert
Hello,

I need to stop a service before the installation of the .net framework 2.0 and restart it after the installation.
If I would stop the service from the command prompt, I could do it with the following command line in the windows system32 directory: net.exe STOP SWEEPSRV.SYS

I've tried this in my script using the run program, as program I've specified $WINSYSDIR$\\net.exe and as command line parameters I've specified 'STOP SWEEPSRV.SYS'
It does not work. Is there something wrong with the parameters?
I've tried without quotes and with quotes or do both have to be quoted?

Thx for the help,
Bernaert Dominique.

Posted: Mon May 15, 2006 2:54 am
by MichaelNesmith
Is the variable WINSYSDIR initialized at the point you are making your call?