Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

User Script fails-Anyone used custom scripts successfully?

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



Joined: 24 Oct 2005
Posts: 5

PostPosted: Thu Oct 27, 2005 5:03 am    Post subject: User Script fails-Anyone used custom scripts successfully? Reply with quote

I've created a profile to run a batch file before comparison via VVScheduler:.
auto_start.bat, but I get the following log entries:

2005-10-26 23:44:35 : ************************************************************
2005-10-26 23:44:35 : Profile Started.
2005-10-26 23:44:35 : [INFO] Script "c:\documents and settings\administrator\my documents\viceversa pro 2\BackupBWgoldDir_auto_start.bat" was run and returned code -1
2005-10-26 23:44:35 : [ERROR] Script "c:\documents and settings\administrator\my documents\viceversa pro 2\BackupBWgoldDir_auto_start.bat" returned an exit code not equal to 0. Stopping execution.
2005-10-26 23:44:35 : ************************************************************
The batch file consists of the following statements and the directory exists:
c:
RD C:\BackBWgoldDir\BWgoldDir15 /s /q
exit 0
ENDLOCAL

Even if the directory did not exist and an errorlevel was set to non-zero, the exit 0 statement returns a zero to VV.

It runs fine in a command prompt window, so why doesn't the batch file execute via VVScheduler?


Last edited by ceje1 on Thu Oct 27, 2005 7:21 pm; edited 1 time in total
Back to top
ceje1



Joined: 24 Oct 2005
Posts: 5

PostPosted: Thu Oct 27, 2005 7:18 pm    Post subject: Reply with quote

Has anyone used the "Run custom scripts before comparison" with a BAT file successfully??
Back to top
Astenz
Guest





PostPosted: Sat Nov 05, 2005 4:00 pm    Post subject: Run custom scripts before comparison Reply with quote

Yes i do run a custom batch file before comparison and i got no error. But am just doing some ping command (to be sure that the remote VPN site is up). I don't have to specify a return code, i just do an "exit" at the end of batch file. Maybe you got something like an open file error that generate an RC=1 instead of RC=0 ?

Good luck! Wink
Back to top
Guest






PostPosted: Thu Nov 10, 2005 1:23 am    Post subject: Reply with quote

Thanks for the reply.

Can the Mod make any comment on my problem???
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8769

PostPosted: Thu Nov 10, 2005 9:45 pm    Post subject: Reply with quote

I will check this one here on our test machine now
_________________
--
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com
Back to top
TGRMN Software
Site Admin


Joined: 10 Jan 2005
Posts: 8769

PostPosted: Mon Nov 14, 2005 5:18 am    Post subject: Reply with quote

Hello Ceje1

I tried the following batch

echo TEST
c:
cd \
rd removeme /s /q
pause
exit 0
ENDLOCAL

and it works fine.


In your case, VV is ruinning the following bat file as per log file:

c:\documents and settings\administrator\my documents\viceversa pro 2\BackupBWgoldDir_auto_start.bat

make sure the content of the script is correct.
_________________
--
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: