Is This Content Helpful?
We're glad to know this article was helpful.
How do I ensure a script will access a standard Windows DLL independently of Windows version or location?
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.