Frequently asked question

How do I ensure a script will access a standard Windows DLL independently of Windows version or location?

Last Published: April 25, 2020

Answer

For DLLs stored in the \Windows or \Windows\System directories, you can use the internally declared WINDIR environment variable.

Windows understands this variable automatically, and so it does not have to be set at the DOS prompt, Control Panel, or autoexec.bat file. Instead of referencing a path like C:\windows\system\the.dll, you would use $WINDIR\system\the.dll.

Article ID:000004093

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic