Author |
Message |
ceje1
Joined: 24 Oct 2005 Posts: 5
|
Posted: Thu Oct 27, 2005 5:03 am Post subject: User Script fails-Anyone used custom scripts successfully? |
|
|
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
|
Posted: Thu Oct 27, 2005 7:18 pm Post subject: |
|
|
Has anyone used the "Run custom scripts before comparison" with a BAT file successfully?? |
|
Back to top |
|
|
Astenz Guest
|
Posted: Sat Nov 05, 2005 4:00 pm Post subject: Run custom scripts before comparison |
|
|
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! |
|
Back to top |
|
|
Guest
|
Posted: Thu Nov 10, 2005 1:23 am Post subject: |
|
|
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: 8759
|
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8759
|
Posted: Mon Nov 14, 2005 5:18 am Post subject: |
|
|
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 |
|
|
|