'Call dll which is in folder other than system32
I want to call my dll through a shortcut, but I need to identify the current directory the dll is in.
At the moment I can only call it this way: C:\Windows\System32\rundll32.exe C:\Users\Public\BUS.dll, print
And I would like to call her that: C:\Windows\System32\rundll32.exe BUS.dll, print
I need a command that returns the current directory and calls the dll
Solution 1:[1]
Assuming that your current directory is the one where bus.dll resides, you can modify the command as follows:
C:\Windows\System32\rundll32.exe %cd%\BUS.dll
%cd% is the Windows cmd variable for the current directory (Reference).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tony BenBrahim |
