WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Environment

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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:   W12910
Filename:   32 Bit Environment Extender.txt
File Created: 1999:04:15:16:50:28
Last Updated: 1999:04:15:16:50:28