Dynamic DOS Environmental variable [?]

  • Thread starter Thread starter Eugene F.
  • Start date Start date
E

Eugene F.

I need to set-up a new environmental variable equal to the existing
(system generated ?) "USERNAME". I need it just for 16-bit DOS
processes (running under NT DVM).

Adding SET MYVAR=%USERNAME% to AUTOCONFIG.NT (c:\Windows\system32) does
not seem to work.

Any suggestions?
 
Hi Eugene

When does AUTOCONFIG.NT run? Don't you mean AUTOEXEC.NT?

If your adding SET MYVAR..... etc to a file that is executed before the
%USERNAME% variable is set, that may be why it doesn't work. What about
using that same command in the registry RunServices area? Or create a batch
file containing that command and add that to the registry.

I don't know at what point you need the variable active. Hope this helps!

PG
 
Back
Top