Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Custom Script return codes

 
Post new topic   Reply to topic     Forum Index -> Tips, Tricks and More
Author Message
KenMathers



Joined: 03 Apr 2008
Posts: 4

PostPosted: Tue Jul 15, 2008 4:26 am    Post subject: Custom Script return codes Reply with quote

I cannot get any custom script to work because they always exit with a Return Code of 1. My bat file is VERY simple and just has the following:
IF EXIST token.txt SET ERRLEV=0
goto end
set ERRLEV=1
:end
exit /B %ERRLEV%

I'm running Windows XP SP2 and I am using the EXIT /B 0 syntax
But no matter what Exit code I put in my script, ViceVersa always says that it received an exit code of 1
I have a Global Script that DOES work.
Can anyone supply me with a simple script that checks for the existence of a token. If the token is there, let the compare/execute run. If the token is NOT there, stop it running.
I tried making my bat file REALLY simple with nothing in it but an exit /B 0 but it still reports as an error level 1 in ViceVersa
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8467

PostPosted: Thu Jul 17, 2008 3:06 am    Post subject: Reply with quote

Hello Ken, I replied to the e-mail you sent to support, please let me know if this issue was solved, thank you.
_________________
--
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 -> Tips, Tricks and More 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: