Forum Index  ViceVersa HOME         FAQ and Knowledge Base

 FAQForum FAQ   SearchSearch Forum  RegisterRegister 
 ProfileProfile   Log inLog in 

Problem with batch script run before comparison

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





PostPosted: Mon Feb 25, 2019 11:02 pm    Post subject: Problem with batch script run before comparison Reply with quote

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: 8684

PostPosted: Mon Feb 25, 2019 11:05 pm    Post subject: Reply with quote

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





PostPosted: Mon Feb 25, 2019 11:06 pm    Post subject: Reply with quote

Looks like it did not like the echo command.
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: