Skip to content

Simple example windows batch file "compiler". (Post-compilation embedded resource)

Notifications You must be signed in to change notification settings

juntalis/win32-bat2exe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Bat2Exe

Wanted to try my hand at making one really quick, and I figured I'd share for anyone who didn't know how existing compilers work.

Run build.bat, and it should compile. If not, let me know. The current source uses the Snappy compression lib which I've added a compiled lib for.

The compiled stub.exe uncompresses an embedded bat file from its resources at runtime, then executes it in the current console before deleting the temporary file created.

The compiled bat2exe.exe file has a copy of stub.exe embedded in its resource file. On runtime, it extracts stub.exe, then updates the existing embedded .bat script with the new script that the user specified.

Sorry for the crappy code and lack of documentation.

About

Simple example windows batch file "compiler". (Post-compilation embedded resource)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published