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.

RunEnviron and "File Not Found" or
"1932: Winexec Error ..."

Keywords: 1932 winexec runenviron environset   

If you are getting an error when running your EXE with the RunEnviron function, that is something like "File Not Found" on 16-bit platforms, and "1932: WinExec ..." on 32-bit Platforms:

The problem may be that your CTL3D32.DLL or CTL3D.DLL are not installed correctly on your system. These DLLs need to be installed in the C:\Windows\System subdirectory.

Make sure you only have one copy of the CTL3Dxx.DLL file on your system, and make sure it's located in the C:\WINDOWS\SYSTEM subdirectory. If you don't have a copy of the, you can reinstall WinBatch, and we'll write that file into the C:\WINDOWS\SYSTEM directory.

The following code, either in a WinBatch script will shed a little light on the situation:

a=FileLocate("ctl3d32.dll")    ; Or the exact name of the dll you are dealing with
b=DirWindows(1)
a=FilePath(a)
Message("3D DLL Path = %a%","Windows System = %b%")
The two directories MUST be the same. Not logically the same, but character for character the same.

Other Considerations:

You might also need to do a Dirchange to the directory where the EnvironSet function sets, before doing the RunEnviron. And make sure you provide the full path to the EXE in the RunEnviron statement, because the path to your EXE is not affected by what you set in the EnvironSet. That PATH only affects where you want your EXE to look for the files that it needs to run.
Article ID:   W12923
Filename:   RunEnviron and File not Found or WinExec Error.txt
File Created: 1999:04:15:16:50:34
Last Updated: 1999:04:15:16:50:34