Link to home
Start Free TrialLog in
Avatar of Lucky
Lucky

asked on

how to rename dll file into exe by batch file

how to convert dll file into exe by Bat file.
Example abc.dll to abc.exe
abc.dll.config to abc.exe.config
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
A batch file can rename them, simply for the sake of chaning the name. However, what makes a file an EXE(ecutable) file is how it was compiled. It must have an executable entry point. DLLs (dynamic link libraries) when compiled do not have such an entry point. So you cannot EXEcute a DLL.

If you have a DLL, you can create an executable program which will act as a shim over the DLL.
@ECHO OFF
RUNDLL32.EXE dll_name,EntryPoint [optional_arguments]

Open in new window


Best would be to add DLL as a reference to a console application