DLL change path

Here you can find everything you need to know about Dll-Files. You can also share your knowledge regarding the topic.

Moderators: DllAdmin, DLLADMIN ONLY

spiceagent11
Posts: 1
Joined: 28 Oct 2021, 15:52

Re: DLL change path

Post by spiceagent11 »

I did exactly what you said:
string filename = Path.Combine("Environment.CurrentDirectory", "settings.xml");

Are there any other options or am I still doing something wrong?

chaksur
Posts: 1
Joined: 22 Dec 2021, 14:03

Re: DLL change path

Post by chaksur »

Try this in

string filename = Path.Combine(Environment.CurrentDirectory, "settings.xml");

uskeliye46
Posts: 1
Joined: 30 Jun 2022, 13:58

Re: DLL change path

Post by uskeliye46 »

Do not put quotes in Environment.CurrentDirectory , this is the Environment variable, there is no need for " " (quotes) around that!

paanjii2
Posts: 1
Joined: 11 Jul 2022, 10:54

Re: DLL change path

Post by paanjii2 »

Applications can control the location from which a DLL is loaded by specifying a full path or using another mechanism such as a manifest. If these methods are not used, the system searches for the DLL at load time as described in this topic.28-Jul-2021

myfiosgateway.one
mobdro

reckstay
Posts: 1
Joined: 26 Dec 2022, 09:14

Re: DLL change path

Post by reckstay »

Do not put quotes in Environment.CurrentDirectory , this is the Environment variable, there is no need for " " (quotes) around that!

archisur
Posts: 1
Joined: 11 Jan 2023, 13:39

Re: DLL change path

Post by archisur »

string filename = Path.Combine(Environment.CurrentDirectory, "settings.xml");
it worked for me

Post Reply