Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Batch problems..'exit code not equal to 0. Stopping..'

 
Post new topic   Reply to topic     Forum Index -> Support
Author Message
roreri



Joined: 28 Feb 2009
Posts: 5

PostPosted: Sat Feb 28, 2009 9:25 pm    Post subject: Batch problems..'exit code not equal to 0. Stopping..' Reply with quote

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... Embarassed Embarassed Crying or Very sad Crying or Very sad

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

PostPosted: Sun Mar 01, 2009 10:51 am    Post subject: Reply with quote

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

PostPosted: Sun Mar 01, 2009 11:52 pm    Post subject: Reply with quote

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

PostPosted: Mon Mar 02, 2009 4:30 am    Post subject: Reply with quote

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

PostPosted: Wed Mar 04, 2009 1:55 am    Post subject: Reply with quote

Great! You are welcome! Smile
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group
Copyright © TGRMN Software. TGRMN Software products: