howto pass argument / parameter to script?
Posted: 21 Apr 2015 18:27
I searched for this but I really could not an suitable solution.
The closest:
http://www.xyplorer.com/xyfc/viewtopic. ... er#p118078
question 1
If I have a catalog item which has the following line in the "Location" field:
Can I hardcode a parameter / argument in the above line and message it out, if "test.xys" contains:
If it is possible, what do I need add at the question mark below in the code?
question 2
Let's say I am in windows command line and if I use the method described in the help file (chapter: "Command Line Switches"):
Then "test.xys" outputs the correct passed argument.
But when after XYplorer is loaded I execute the same command again, but in stead of "/user="a|b|c" , I use "/user="1|2|3".
XYplorer outputs, the previous (original) "a|b|c". I can understand that this is as it was meant to work.
But is it possible to have it output the updated (changed) argument/parameter: "1|2|3"
The closest:
http://www.xyplorer.com/xyfc/viewtopic. ... er#p118078
question 1
If I have a catalog item which has the following line in the "Location" field:
Code: Select all
load "f:\scripts\test.xys";
If it is possible, what do I need add at the question mark below in the code?
Code: Select all
$a= ? // what do I need to enter here to access the argument/parameter....
msg $a;
question 2
Let's say I am in windows command line and if I use the method described in the help file (chapter: "Command Line Switches"):
Code: Select all
f:\xyplorer\XYplorer.exe /script="f:\scripts\test.xys" /user="a|b|c"
But when after XYplorer is loaded I execute the same command again, but in stead of "/user="a|b|c" , I use "/user="1|2|3".
XYplorer outputs, the previous (original) "a|b|c". I can understand that this is as it was meant to work.
But is it possible to have it output the updated (changed) argument/parameter: "1|2|3"