I have a system that downloads a file from my webserver as a .DLL. I would like to execute said DLL as an EXE file. Is there a way to start it directly as an EXE in C# or should I change it to an EXE and then run it.
EDIT: I am running Windows 10
I have a system that downloads a file from my webserver as a .DLL. I would like to execute said DLL as an EXE file. Is there a way to start it directly as an EXE in C# or should I change it to an EXE and then run it.
EDIT: I am running Windows 10
solved it with this:
File.Move(DestinationPath, Path.ChangeExtension(DestinationPath, ".exe"));