Start script from Address Bar

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Start script from Address Bar

Post by PeterH »

Is it possible to start a script by entering it's name (with some prefix) into the Address Bar? (Found nothing in Help...)

As, for example, you can do this for DOS-Cmds with !cmd, it should be possible even more for XY-scripts, I think.

If it's not, this turns into a wish :roll:

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Start script from Address Bar

Post by Stefan »

There is "load"

Default looking into <xyscripts> and no extension needed.

Just use

load myScript;
or
::load myScript;

if there is XY\data\scripts\myScript.xys



Otherwise use with path
load x:\test\script;
load subfolder\script;
load ..\test\script;

PeterH
Posts: 2829
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Start script from Address Bar

Post by PeterH »

Hello Mr. Scripting :D

You are right: works fine! Thanks a lot, Stefan!
So: no wish needed!

...while Don may still consider why it's easier to call DOS than calling XY-script.
But really no problem...

Post Reply