How to compile batch scripts into .exe

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

How to compile batch scripts into .exe

#1 Post by Rileyh » 07 Oct 2011 05:25

Hi,
I was wondering if you could tell me how to compile batch scripts into executable files.
I made a password protection batch file, but someone who was tech-savvy enough could just right-click and edit to see the password. So if it was an .exe file it couldn't be "edited" and see the password.

Regards,
Rileyh

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: How to compile batch scripts into .exe

#2 Post by aGerman » 07 Oct 2011 15:32

Batch is an interpreted language and cannot be compiled at all.
There are some bat2exe tools which generate something like a self-extracting archive or an installer. But if you execute the resulting exe it does nothing but extracting your origin source code into the %temp% folder and runs the file there. For that reason everybody can read the password too. There is no useful possibility to hide the batch content.

Regards
aGerman

Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

Re: How to compile batch scripts into .exe

#3 Post by Rileyh » 08 Oct 2011 01:06

aGerman,
I can see what you mean.
Thank you anyway

Regards,
Rileyh

Post Reply