Author |
Message |
_SB_ Guest
|
Posted: Mon Feb 25, 2019 11:02 pm Post subject: Problem with batch script run before comparison |
|
|
I am trying to run a script to check for long path before I do a comparison but when I configure script will not run before comparison VV just shows a spinning wheel and does nothing.
It seems to be caught up in the batch file.
I tried removing the pause but this did not help.
Script is below:
------------------------------
rem run check long path executable
call TLPD_x64.exe Q: 230
rem check exist code (look at readme for more info)
echo TLPD_x64.exe returns "%ERRORLEVEL%"
IF %ERRORLEVEL% NEQ 0 (
rem echo Long paths found
cscript MessageBox.vbs "Long paths found. Please resolve before compare"
rem: open log file
%TEMP%/TLPD-log.txt
) ELSE (
cscript MessageBox.vbs "No Long paths found, proceed with
compare. ")
rem pause
------------------------------
MessageBox.vbs contains:
------------------------------
Set objArgs = WScript.Arguments
messageText = objArgs(0)
MsgBox messageText
------------------------------
It works OK when I run the following script:
Message box call.cmd which contains:
------------------------------
cscript MessageBox.vbs "Don't forget to check for long paths."
------------------------------
Any suggestions will be appreciated.
Thanks. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8762
|
Posted: Mon Feb 25, 2019 11:05 pm Post subject: |
|
|
Thank you for contacting us. Please try removing one line at a time from batch to see which one is causing the issue. If you find that line, please let us know... thanks! _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
_SB_ Guest
|
Posted: Mon Feb 25, 2019 11:06 pm Post subject: |
|
|
Looks like it did not like the echo command. |
|
Back to top |
|
|
|