Page 1 of 1 1
Topic Options
#32714 - 2002-11-18 01:48 PM set command
Franklinvu Offline
Lurker

Registered: 2002-11-18
Posts: 4
Loc: Netherlands
Hello,

I am trying to set a enviroment variable within a kix script, but it does not seem to work ...

I am using kixstart 95 3.63.

what did i try ?:

set 'ops=test'
set ops=test
set "ops=test"
set %ops%=test
set "%ops%=test"
set '%ops%=test"

neither of the above did set the envoirment variable ops to test when i used the set command in a command box (the same or another VM).

I've tried it on several machines Nt 4.0 and Windows 2000 machines ... all with the same result ..

What goes wrong ?

help ?

Top
#32715 - 2002-11-18 01:52 PM Re: set command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
how did you test it?
not sure but think you need to start the command prompt after the set to see the change.
_________________________
!

download KiXnet

Top
#32716 - 2002-11-18 01:54 PM Re: set command
Franklinvu Offline
Lurker

Registered: 2002-11-18
Posts: 4
Loc: Netherlands
I tested it within the same 'dos' box (virtual machine in nt 4.0) and in another one after closing the box where the script runned in ...

Both with no positive result

Top
#32717 - 2002-11-18 02:06 PM Re: set command
Franklinvu Offline
Lurker

Registered: 2002-11-18
Posts: 4
Loc: Netherlands
Sorry, but it did work if i open another box ... *strange* ..
But how do i "refresh" the set command because i need the enviroment variable in the same box to be set to be used in a batch file ...

Top
#32718 - 2002-11-18 02:12 PM Re: set command
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
then you should check the manual for...
I think it was setl
_________________________
!

download KiXnet

Top
#32719 - 2002-11-18 02:16 PM Re: set command
Franklinvu Offline
Lurker

Registered: 2002-11-18
Posts: 4
Loc: Netherlands
Yep setl works.
Thanx alot ...

Top
#32720 - 2002-11-18 02:16 PM Re: set command
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Further to Jooel's response, you should check:

SET, SETL, and SETM..

Also, you will want to check the notes about - WM_SETTINGCHANGE.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

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 820 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.058 seconds in which 0.026 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