Page 1 of 1 1
Topic Options
#130637 - 2004-12-06 10:41 AM run kixfile with params
expodium Offline
Fresh Scripter

Registered: 2004-07-14
Posts: 35
hi,

I wanna make a kixfile and when running, i put 1 pmarameter.

Ex. : test.exe old

How i can get the "old" parameter so i can use in the code?

Many thanks to all

expodium

Top
#130638 - 2004-12-06 11:15 AM Re: run kixfile with params
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
This will set the variable $sMyVar in your script:
Code:
kix32.exe myscript.kix $sMyVar="old"


Top
#130639 - 2004-12-06 12:24 PM Re: run kixfile with params
expodium Offline
Fresh Scripter

Registered: 2004-07-14
Posts: 35
thanks for the answer but still not working.

How to use it in a shortcut?

i made it first as a executable file and then i need a shortcut of that file and in that shortcut, i put the params in it

Ex: c:\extvar.exe myvar="old"

when, i catch the parameter, its empty.

regards,
expodium


Edited by expodium (2004-12-06 12:43 PM)

Top
#130640 - 2004-12-06 01:57 PM Re: run kixfile with params
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
How are you making it an executable?
Top
#130641 - 2004-12-06 02:03 PM Re: run kixfile with params
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
... you forgot to denote the variable name on the command line with a $-sign
_________________________



Top
#130642 - 2004-12-06 02:40 PM Re: run kixfile with params
expodium Offline
Fresh Scripter

Registered: 2004-07-14
Posts: 35
with or without a $, still not working.

i made a executable file with kixtart editor registered at my job.

regards,

expodium

Top
#130643 - 2004-12-06 02:48 PM Re: run kixfile with params
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Ok, this is not a KiXtart issue, it is a KiXtart Editor issue.

The KiXtart Editor is not part of KiXtart, it is a 3rd party support tool.

If you haven't done it already, you'd be better off posting your question on the KiXtart Editor support site as you will probably get a quicker response.

Of course you are welcome to post any questions about KiXtart itself here.

Top
#130644 - 2004-12-06 03:22 PM Re: run kixfile with params
Stevie Offline
Starting to like KiXtart
*****

Registered: 2002-01-09
Posts: 199
It depends on if you're using KiXscripts Editor or if you're using the newer AdminScriptEditor. For the former, use $EXECmdLine in the script to return the command line arguments passed to the exe. For the latter, use %ASEEXEARGS%. If you have any further questions, you can post them here:
http://www.adminscripteditor.com/forum/tt.asp?forumid=1
_________________________
Stevie

Top
#130645 - 2004-12-06 08:57 PM Re: run kixfile with params
Anonymous
Unregistered


sorry, it's kixscript editor 1.7

i try it in a shortcut but it dont work.

expodium

Top
#130646 - 2004-12-06 09:17 PM Re: run kixfile with params
expodium Offline
Fresh Scripter

Registered: 2004-07-14
Posts: 35
stevie,

can you give me some example with %ASEEXEARGS%?

many thanks

expodium

Top
#130647 - 2004-12-07 06:08 AM Re: run kixfile with params
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Please post at the AdminScriptEditor website as you'll get better support there and as Stevie pointed out to you.
_________________________
There are two types of vessels, submarines and targets.

Top
#130648 - 2004-12-07 03:44 PM Re: run kixfile with params
Stevie Offline
Starting to like KiXtart
*****

Registered: 2002-01-09
Posts: 199
%ASEEXEARGS% will not work if you're using KiXscripts Editor. http://www.adminscripteditor.com/forum/tm.asp?m=5393
_________________________
Stevie

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 2220 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.054 seconds in which 0.029 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