Page 1 of 1 1
Topic Options
#7915 - 2001-04-02 03:32 PM Environment variables
Anonymous
Unregistered


Who can tell me how I can get environment variables value inside my KIX script (like a SET command in DOS)?

I'd like to know what is :
%comspec% /c.

Thanks for your help

[This message has been edited by Sandrine (edited 02 April 2001).]

Top
#7916 - 2001-04-02 04:46 PM Re: Environment variables
Anonymous
Unregistered


Sandrine,

Kix knows the SET, SETL and SETM commands. With these commands you can set user as well as machine environment variables, check the manual which you can download from this site.

The %comspec% /c ; %comspec% is a variable which is used for the command line. (check your environment vars !) /c is a command line switch used to start the program and to return when it has finished.
(use command.exe /? on W9x to see them all)

Hope it helped..

Bert.

Top
#7917 - 2001-04-02 07:20 PM Re: Environment variables
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

See setenv.kix for ideas.
Greetings.

see site: http://home.wanadoo.nl/scripting
related topic: http://kixtart.org/board/Forum2/HTML/001459.html

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#7918 - 2001-04-02 07:43 PM Re: Environment variables
cj Offline
MM club member
*****

Registered: 2000-04-06
Posts: 1102
Loc: Brisbane, Australia
You can read Environment Variables in KiX the same way as Macros and KiX Variables:

Environment Variables:
To read: %variablename%
example: "Hello %username%" ?

To write: Set, SetL, SetM
example: SET "myvar = 'Hello there!'"


KiX Macros
To read: @macroname
example: "Hello @userid" ?

To write: NO - read only


KiX Variables:
To read: $variablename
example: "Hello $yourname" ?

To write: $variablename=value
example: $yourname="Sandrine"

more info: you can also use Get and GetS
example: "Enter your name: " GETS $yourname


hope this helps,

cj

------------------
For more scripts goto my website and click the hammer and spanner icon.

chrismat@ozemail.com.au

Top
#7919 - 2001-04-03 11:01 AM Re: Environment variables
Anonymous
Unregistered


Thanks everybody.

You all gave me all the answers I was looking for !!!

Bye.

Top
#7920 - 2001-04-03 11:04 AM Re: Environment variables
Anonymous
Unregistered


Thanks everybody.

You gave me all the answers I was looking for.

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.06 seconds in which 0.032 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