#131448 - 2004-12-16 04:24 PM
Maybe an OS issue
|
misty
Fresh Scripter
Registered: 2004-10-14
Posts: 31
|
I'm having trouble setting an environment variable with Kixtart in W2K. I need the equivalent of typing "set LINAME=chuck" at the command line. I've got a legacy program that does not look in the registry settings for the environment, so the "new" way of setting them in HKCU will not work.
I have the following code in my script now: Code:
SET "LINAME=@USERID"
It is indeed working the way it is documented, but if I open a command prompt and type "echo %LINAME%" it doesn't know about the variable.
Is my only alternative to run the command through a batch script? The command doesn't get launched by Kixtart but just by the user when he needs it. I am hoping there is a better way to do this from within my script rather than having to write a batch script and change everyone's shortcut to the program.
Thanks in advance!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(mole)
and 2107 anonymous users online.
|
|
|