sladecek
asked on
Set DOS variable in the logon script
Hi.
I would like to set an DOS variable VUSER to the value
of username in the logon script. I tried thinks like
SET VUSER=%USERNAME% but it did'n help. The script will
run on WIN95 and maybe on DOS 6.22 with latest LANMAN
client too. It used to be so easy with Novell !
My server runs NT 4.0. I even tried to
write a simple C program, but I havent find any
method how to set an environment variable from the
code. How is it done in the Novell client ?
I would like to set an DOS variable VUSER to the value
of username in the logon script. I tried thinks like
SET VUSER=%USERNAME% but it did'n help. The script will
run on WIN95 and maybe on DOS 6.22 with latest LANMAN
client too. It used to be so easy with Novell !
My server runs NT 4.0. I even tried to
write a simple C program, but I havent find any
method how to set an environment variable from the
code. How is it done in the Novell client ?
ASKER
Thank you for your information. Unfortunatellt, my question was not stated clearly enough.
My server is running NT. My clients are running WIN95 (most of them) or
MS DOS (some of them). I would like to write a logon script which will reside
on the server and will be run on the clients at logon. This script should change the
clients' environment, not the servers'. You method is not useable
as MS DOS has no registry at all and WIN95 has no "Environment" key
in it.
My server is running NT. My clients are running WIN95 (most of them) or
MS DOS (some of them). I would like to write a logon script which will reside
on the server and will be run on the clients at logon. This script should change the
clients' environment, not the servers'. You method is not useable
as MS DOS has no registry at all and WIN95 has no "Environment" key
in it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
thank you for your answer. Althoug the Kixtart cannot set
the win95 environment (it is even stated in the manual),
it was of great value to me, as the documentation pointed
me to the winset utility delivered with the win95 itself.
regards
L. Sladecek
thank you for your answer. Althoug the Kixtart cannot set
the win95 environment (it is even stated in the manual),
it was of great value to me, as the documentation pointed
me to the winset utility delivered with the win95 itself.
regards
L. Sladecek
One problemt is that you can't use the environmentvariable further down your logon script, as you can't change the environment for a running process (at least this is true for NT, I'm not quite sure for Win95)