0

I have an EXE file which needs a DLL to be executed correctly, the problem is I need to change location of DLL and it can't be beside the EXE file (e.g. it should be in a \bin folder beside the EXE file). How can I add this path (e.g. bin folder) to searching DLL folder of windows?

MicroVirus
  • 5,324
  • 2
  • 28
  • 53
Matrix Buster
  • 299
  • 3
  • 9

2 Answers2

1

You need to add you desired path to the environment variable named PATH

0

The MSDN page on DLL Search Order describes how the windows loader handles searching for the DLL. Depending on your situation, you can add the location of your DLL to the PATH variable, but do note that this is last in the search list, behind the application folder and all of the system folders.

MicroVirus
  • 5,324
  • 2
  • 28
  • 53