Author |
Message |
roreri
Joined: 28 Feb 2009 Posts: 5
|
Posted: Sat Feb 28, 2009 9:25 pm Post subject: Batch problems..'exit code not equal to 0. Stopping..' |
|
|
I am trying to use a batch file to stop and start a service, and I am not a batch file writer by no means. So I may be doing something wrong. And I may need to write something else besides a batch file. But that is beyond my expertise right now...
To explain things let me start from the beginning:
I have a contractor/developer financial package called Realm/Yardi that I need to stop the service before I copy/backup the files using VV. If I don't stop the service they don't get copied correctly. In fact it says that they are corrupted.
I also need to restart this service after the VV sync is finished.
The software resides on a Windows 2000 server.
The batch file is:
@echo off
net stop "proservice for 9.1d" > NUL
:END
This batch file resides in the same folder as the profile and there is a profile_stop batch file also.
here is the error message I get when I run the profile manually:
Script "c:/...path\filename.bat" returned an exit code not equal to 0. Stopping execution.
Any help here would be VERY helpful!!!
Thanks!
RoReRi... |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8763
|
Posted: Sun Mar 01, 2009 10:51 am Post subject: |
|
|
Hello
try adding the following line:
EXIT 0
at the end of the batch , that is
@echo off
net stop "proservice for 9.1d" > NUL
EXIT 0 _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
roreri
Joined: 28 Feb 2009 Posts: 5
|
Posted: Sun Mar 01, 2009 11:52 pm Post subject: |
|
|
Thanks!!! I was expecting something more difficult.
You hit the "EASY" button, to coin a phrase!!!
Thanks again!
RoReRi |
|
Back to top |
|
|
roreri
Joined: 28 Feb 2009 Posts: 5
|
Posted: Mon Mar 02, 2009 4:30 am Post subject: |
|
|
Just an update.... EVERYTHING works just fine...
Thanks for the great support. That is what is going to make or break companies in these economic times...
Thanks again!
RoRoRe |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8763
|
|
Back to top |
|
|
|