Stop/Start Service

No more questions - please go to http://www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

Stop/Start Service

Postby uweiss on Wed May 09, 2012 1:51 am

Hello

Simply wanted to stop a service and restart it after syncing is completed. So i added the following in Job > "Execute command or script before / after":

Code: Select all
C:\WINDOWS\system32\net stop ServiceName

C:\WINDOWS\system32\net start ServiceName


The command works fine on command line, but not when SFFS runs it. Service is running as administrator and i get this error message:

Code: Select all
Error executing C:\WINDOWS\system32\net stop ServiceName
The system cannot find the file specified.


What's the problem there?

Thanks
Urs
uweiss
 
Posts: 4
Joined: Thu Feb 03, 2011 3:16 am

Re: Stop/Start Service

Postby superflexible on Wed May 09, 2012 3:39 am

You could use:

Code: Select all
C:\WINDOWS\system32\net.exe stop ServiceName


or simply

Code: Select all
net.exe stop ServiceName
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Stop/Start Service

Postby uweiss on Wed May 09, 2012 4:49 am

Oh, .exe... of course... ;)

Thanks
Urs
uweiss
 
Posts: 4
Joined: Thu Feb 03, 2011 3:16 am


Return to Windows Support * new forum: www.syncovery.com/forum

cron