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


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

  • Legacy Products

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options