Hello,
how can one compile a .bat script to a .exe file?
Help appreciated, thanks.
Compile .bat to .exe?
Moderator: DosItHelp
Re: Compile .bat to .exe?
(_osd_) wrote:Hello,
how can one compile a .bat script to a .exe file?
Help appreciated, thanks.
This topic has been covered dozens of times on the forums.
A quick google search for bat to exe site:dostips.com will find you all the discussions about it on dostips.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: Compile .bat to .exe?
Don't. Just... don't.
If you are doing this to obfuscate your code, just use a language that needs to be compiled. There's no valid reason to ever convert .bat to .exe.
If you are doing this to obfuscate your code, just use a language that needs to be compiled. There's no valid reason to ever convert .bat to .exe.
Re: Compile .bat to .exe?
Most probably you've already hit this -> http://stackoverflow.com/questions/2817 ... arty-tools ?
and this -> http://www.f2ko.de/en/b2e.php ?
though there's no way to 'compile' bat to exe - all the tools just create a temp file somewhere and and then call it.
and this -> http://www.f2ko.de/en/b2e.php ?
though there's no way to 'compile' bat to exe - all the tools just create a temp file somewhere and and then call it.
Re: Compile .bat to .exe?
By going to the %tmp% folder the batch file should be in a sub folder so compiling it only protects the code from people that don't know this.
Also I when I used an online compiler it added the line
To the top does anyone know why?
Also I when I used an online compiler it added the line
Code: Select all
Shift /0
To the top does anyone know why?
Re: Compile .bat to .exe?
batchcc wrote:By going to the %tmp% folder the batch file should be in a sub folder so compiling it only protects the code from people that don't know this.
Also I when I used an online compiler it added the lineCode: Select all
Shift /0
To the top does anyone know why?
probably the call includes the name of the file and with shift /0 they strip the first argument.
Re: Compile .bat to .exe?
npocmaka_ wrote:batchcc wrote:By going to the %tmp% folder the batch file should be in a sub folder so compiling it only protects the code from people that don't know this.
Also I when I used an online compiler it added the lineCode: Select all
Shift /0
To the top does anyone know why?
probably the call includes the name of the file and with shift /0 they strip the first argument.
Thanks npocmaka