#112981 - 2004-02-01 11:50 PM
Ordinary command line parameters
|
beerslayer
Fresh Scripter
Registered: 2003-12-10
Posts: 15
|
Is it possible to pass an ordinary command line parameter to a KiX script?
For example, I want to call a KiX script with the following command line:
Quote:
openfile.kix myfile.txt
Now, before you scream "RTFM!" at me, I've read the manual enough to see that it is possible to do something like this:
Quote:
openfile.kix $filename="myfile.txt"
however, this causes me problems because the actual command line I need to send to the KiX script is being produced by another application whose sources I do not have access to, so I'm stuck with the output it wants to give, which does not include the $filename= part. (Massaging this output before sending it to the KiX script would defeat the purpose of writing this script using KiX rather than, say, Perl.)
In a DOS batch file, I can access any command line parameter using the %1, %2, etc. syntax. Is there anything directly comparable to this in KiX that I missed?
_________________________
|
|
Top
|
|
|
|
#112999 - 2004-02-07 09:20 PM
Re: Ordinary command line parameters
|
beerslayer
Fresh Scripter
Registered: 2003-12-10
Posts: 15
|
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 873 anonymous users online.
|
|
|