Page 1 of 1 1
Topic Options
#2310 - 2000-03-30 09:54 AM Passing Command Line Parameters
Anonymous
Unregistered


Is there a way to read command line parameters when calling a kixtart script?

For example, I want to run a script:
kix32 test.kix /s

How can I have the script see the "/s" switch?

Thanx for any info.

Roneil

Top
#2311 - 2000-03-30 10:21 AM Re: Passing Command Line Parameters
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
KiX lets you assign variables on the command line. Here's an excerpt from the documentation ...

---8<---

Optionally, variables can be created and assigned a value on the commandline with which KiXtart is started. To do this, type the variable name followed by an equal sign (=) and the value the variable should have. For example:

KIX32 Demo.kix $Key=Value


Note
On the commandline, do not include spaces between the equal sign (=) and the value. If you want to specify a value that contains spaces, enclose it in quotation marks (for example, KIX32 Demo.kix $Key="Hi there").

---8<---

Shawn.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 837 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.048 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org