Changing the Environment in Windows 95/NT
Keywords: regapp environment environset runenviron envitemize
Question:
Currently I'm using WWENV16i.dll in my app, I would like to know is there a 32-bit version for this?Answer:
There is no 32 bit Environment extender. Actually the issue is more complicated. In 32 bit Windows, you no longer need to update the environment. Basically the registry database commands can do the job for you.For Windows 95 and NT 4.0, use the RegApp function to tell the system what path to use for various exe files. You can update this just before launching the app.
If WinBatch is going to launch the program, you can also try the EnvironSet function along with the RunEnviron function.
After you have changed the PATH with the Environset function, you can take a look at the new settings by displaying in a message box the path:
; Display the PATH for this session currpath = Environment("PATH") Message("Current System Path", currpath) ; Display the Environment for this session allenv=EnvItemize() Message("Environment Settings", allenv)Note that the EnvItemize function displays alot more stuff than does the Environment("PATH").
Article ID: W12910Filename: 32 Bit Environment Extender.txt