Page 1 of 1 1
Topic Options
#124339 - 2004-08-03 02:55 PM set environment example plz
expodium Offline
Fresh Scripter

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

i try to put a new environment var but when i run my script, i cant see anything in dos, when i type "set"

the example i use :

$tmp = "test"

set "localserver=$tmp"

why i dont get this var in to my environment?

Thanks in advance

Expodium

Top
#124340 - 2004-08-03 03:09 PM Re: set environment example plz
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL


$tmp = "test"

set "localserver=$tmp"

? %localserver%

gets $k
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#124341 - 2004-08-03 03:18 PM Re: set environment example plz
expodium Offline
Fresh Scripter

Registered: 2004-07-14
Posts: 35
okay

but what if you type "set" in a dos environment? do you see also the localserver var?

Regards,

Expodium

Top
#124342 - 2004-08-03 03:40 PM Re: set environment example plz
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Have you tried looking in the manual?

Quote:

This command does not affect the current environment. If you start KiXtart from a batch file, any commands in the batch file that are run after KiXtart exits do not see changes made by the SET or SETL commands.


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#124343 - 2004-08-03 04:54 PM Re: set environment example plz
expodium Offline
Fresh Scripter

Registered: 2004-07-14
Posts: 35
that i can understand

and known where the problem are. i leave my dos box open (bad idea). After close and reopen a dosbox, i see the new environment "localserver"

Thanks

Expodium

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
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.154 seconds in which 0.091 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