Another script bombing out in ver 17

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Another script bombing out in ver 17

Post by Kucera »

After update from 15 something to 17.04.01, the over 2 years old script calling BeyondCompare says
"BCompare.exe not found.
Edit script and check path"
Here's the path to it:
"C:\Portables\Beyond Compare 3\BCompare.exe"
and attached is the script - I made sure the path is the same in there, so does the new version of XY need something else in the script?
Thanks for any help.
Regards Emil
To see the attached files, you need to log into the forum.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Another script bombing out in ver 17

Post by highend »

Show a screenshot from the folder that contains the .exe file. I want to see the
address bar in that picture as well as the .exe scrolled into a visible position
One of my scripts helped you out? Please donate via Paypal

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Another script bombing out in ver 17

Post by Kucera »

highend wrote:Show a screenshot from the folder that contains the .exe file. I want to see the
address bar in that picture as well as the .exe scrolled into a visible position
Here it is; should be correct, I copied the path right form XY …
Regards Emil
To see the attached files, you need to log into the forum.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Another script bombing out in ver 17

Post by highend »

Ok, so show me how you invoke this script exactly. From a toolbar, UDC, PFA... Show a screenshot that contains the call to this script
One of my scripts helped you out? Please donate via Paypal

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Another script bombing out in ver 17

Post by Kucera »

highend wrote:Ok, so show me how you invoke this script exactly. From a toolbar, UDC, PFA... Show a screenshot that contains the call to this script
With 2 files highlighted, I use the menu Scripting-Load script file, then double-click the BCompare2.xys file. Never bothered to make a button, it does not get used all that often.
regards Emil

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Another script bombing out in ver 17

Post by highend »

I don't see the call to the script file through that description but regardless.
Edit the script.

Code: Select all

end (exists("C:\Portables\Beyond Compare 3\BCompare.exe")=="0"), "BCompare.exe not found.<crlf>Edit script and check path.";
Place a question mark right in front of the "end" like this:

Code: Select all

?end (exists("C:\Portables\Beyond Compare 3\BCompare.exe")=="0"), "BCompare.exe not found.<crlf>Edit script and check path.";
Save it, invoke it again.

You should get a "Stepping through a script" window popping up. Click on time on "Continue" and then make a screenshot from it
One of my scripts helped you out? Please donate via Paypal

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Another script bombing out in ver 17

Post by Kucera »

highend wrote:I don't see the call to the script file through that description but regardless.
Edit the script.

Code: Select all

end (exists("C:\Portables\Beyond Compare 3\BCompare.exe")=="0"), "BCompare.exe not found.<crlf>Edit script and check path.";
Place a question mark right in front of the "end" like this:

Code: Select all

?end (exists("C:\Portables\Beyond Compare 3\BCompare.exe")=="0"), "BCompare.exe not found.<crlf>Edit script and check path.";
Save it, invoke it again.

You should get a "Stepping through a script" window popping up. Click on time on "Continue" and then make a screenshot from it
Hello again,
I followed the instructions, edited, then, when I tried to invoke it as before, by double clicking the xys file, I got the same message, that it could not find the exe file. So I copied the script into the Scripting-Run script window, hit ok, got
1.png
clicked Continue, got
2.png
clicked Continue again, despite the message, and the BeyondCompare window opened, with the two files!
So, what was wrong? and how to invoke it now, to avoid the error msg and not have to step through the script?
Thanks for your help!

Edit:
Removing the questionmark and copying the script into the UDC seems to do the trick - invoking it now from the menu
User-Run script.
Thanks again very much
Regards Emil
To see the attached files, you need to log into the forum.
Last edited by Kucera on 04 Dec 2016 07:36, edited 1 time in total.

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Another script bombing out in ver 17

Post by highend »

The script file you are invoking with the "Scripting-Load script file" method is NOT the one you posted here / nor the one you've just edited. That's your problem. And because I've assumed that I wanted to see the call to the script file :biggrin:
One of my scripts helped you out? Please donate via Paypal

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Another script bombing out in ver 17

Post by Kucera »

highend wrote:The script file you are invoking with the "Scripting-Load script file" method is NOT the one you posted here / nor the one you've just edited. That's your problem. And because I've assumed that I wanted to see the call to the script file :biggrin:
By gum, embarrassed again - but now, where can I find (what directory) that file that actually works now?

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Another script bombing out in ver 17

Post by highend »

You attached the working file to your first posting?

To fix the non-working one:
Put
goto <xyscripts>;
in the address bar and hit enter

Select the file "BCompare2.xys"

Compare it to the one you attached in your first post. You probably only need to adapt the path to BCompare.exe
One of my scripts helped you out? Please donate via Paypal

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Another script bombing out in ver 17

Post by Kucera »

highend wrote:You probably only need to adapt the path to BCompare.exe
Done, all's well now, I knew that it would not be XY that's at fault, just did not believe myself that scatterbrained, sigh …
Thanks again, very much
Regards Emil

Post Reply