Page 1 of 1 1
Topic Options
#49254 - 2000-03-24 08:07 AM Environment in Win 95 and Win98
Anonymous
Unregistered


Is it possible to set a Dos variable with kix.
I want to do this:
SET TEST=USERNAME

I have tried this
SET "TEST=@USERID"
SHELL "SET TEST=@USERID"
and SETL, SETM
nothing works ??

THANKS !!

Kjetil

Top
#49255 - 2000-03-24 08:13 AM Re: Environment in Win 95 and Win98
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
knyhus...

The environment variable won't show-up in your current process if your just running the kix script from the command line.

Try running your script again with the SET "TEST=@USERID" statement, then open up a new command window and check it there !

Shawn.

Top
#49256 - 2000-03-24 08:24 AM Re: Environment in Win 95 and Win98
Anonymous
Unregistered


No - in Win95 and 98 it didn't work.
Other suggestions ?

Thanks !

Kjetil

Top
#49257 - 2000-03-24 10:55 AM Re: Environment in Win 95 and Win98
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
for win9x computers you have to use

shell "winset.exe ......"

Bryce

Top
#49258 - 2000-03-28 03:31 PM Re: Environment in Win 95 and Win98
Anonymous
Unregistered


I have WINSET.EXE running from KIX32.EXE setting the path. The only problem is it sets the path for the Master UET and not the UET copied when the KIX32 VM is created. However, after it runs you can run a path from the DOS Prompt and see the changes. I could not get the KIX32 SHELL to work since it apparently tries to execute an INTERNAL command. RUN works nicely though! To add a W:. to the current path I did the following:

RUN "WINSET path=%path%"+"W:."

Hope this is some help!

Jack
jarnold@ipscardsolutions.com

Top
#49259 - 2000-03-31 11:27 AM Re: Environment in Win 95 and Win98
kholm Offline
Korg Regular
*****

Registered: 2000-06-19
Posts: 714
Loc: Randers, Denmark
In Win9x

If you wan´t to use the environment variables in scripts called from the current script you have to use:
SetL "EnvVar=Test"

If you wan´t to set the master environment you have to use:
Shell "%COMSPEC% /C WinSet EnvVar=Test"

So if you want to use the variable to be visible in current script and later scripts or bath files you have to use both lines:
SetL "EnvVar=Test"
Shell "%COMSPEC% /C WinSet EnvVar=Test"

Top
#49260 - 2000-04-03 01:25 AM Re: Environment in Win 95 and Win98
Anonymous
Unregistered


Thanks for all help.
It's working !!

knyhus

Top
Page 1 of 1 1


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

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

Generated in 0.052 seconds in which 0.024 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