K
Karsten
Hello,
due to incompatibilities I've installed 2 versions of a software into
different folders (on Win2000 server), which the user starts via shortcuts to
batch files, which only overwrite the registry for the %path% user
environment variable and start the software. Something like:
start_V1.cmd:
regedit /s c:\V1.reg
C:\....exe
with V1.reg:
[HKEY_CURRENT_USER\Environment]
"PATH"="C:\\...
(OT: it's not the best solution, as %path% can change; usually it should be
parsed, the old path removed and the new added... but it's a quick solution)
Now it can happen, that the %path% on the command line doesn't update, while
the env vars in registry and control panel are ok. It's consistent in new
instances of cmd, and seems only a restart helps to overcome this deadlock.
Qestion to the experts: is there a solution beside reboot/assembling the
%path%?
Thanks in advance, any idea is welcome
Karsten
due to incompatibilities I've installed 2 versions of a software into
different folders (on Win2000 server), which the user starts via shortcuts to
batch files, which only overwrite the registry for the %path% user
environment variable and start the software. Something like:
start_V1.cmd:
regedit /s c:\V1.reg
C:\....exe
with V1.reg:
[HKEY_CURRENT_USER\Environment]
"PATH"="C:\\...
(OT: it's not the best solution, as %path% can change; usually it should be
parsed, the old path removed and the new added... but it's a quick solution)
Now it can happen, that the %path% on the command line doesn't update, while
the env vars in registry and control panel are ok. It's consistent in new
instances of cmd, and seems only a restart helps to overcome this deadlock.
Qestion to the experts: is there a solution beside reboot/assembling the
%path%?
Thanks in advance, any idea is welcome
Karsten