Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Script return code: 1 error

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



Joined: 02 Aug 2007
Posts: 2

PostPosted: Thu Aug 02, 2007 7:10 pm    Post subject: Script return code: 1 error Reply with quote

I am getting a Script return code: 1 error

Log file shows that the transfer works but the "end" script does not
Exit Code: 0. OK.
2007-08-02 11:08:01 : Running script i:\FirewallLogs_end.bat
2007-08-02 11:08:01 : Script Output:
2007-08-02 11:08:01 : End Script Output
2007-08-02 11:08:01 : Script return code: 1

This is the .bat file I am running. Just to see if it works
c:
dir

I am running VVScheduler 2.0.0.3

This is a local script and it is in the same directory as the .fsf file

I would appreciate any help
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8689

PostPosted: Fri Aug 03, 2007 12:02 pm    Post subject: Reply with quote

What Operative System are you using?

On Windows XP/2000/2003 you can use the EXIT command.

In Windows XP/2000/2003 a new /B switch has been added to the EXIT command, enabling the batch file to quit with a return code:

EXIT /B [ exitCode ]
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
motownrv



Joined: 02 Aug 2007
Posts: 2

PostPosted: Fri Aug 03, 2007 2:05 pm    Post subject: Reply with quote

Thanks for the reply.

This is running on an NT 4.0 server.

The dir command does not even work within the .bat file.
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8689

PostPosted: Sat Aug 04, 2007 1:23 am    Post subject: Reply with quote

Thanks, I know there are issues with scripts on NT 4.0 : NT 4.0 seems to return always 1 from a batch file .... Question
_________________
--
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: