Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Typo.

latest commit a85bd5d0e9
Charles Grunwald (Juntalis) authored February 01, 2012
Octocat-spinner-32 include Initial commit. February 01, 2012
Octocat-spinner-32 lib Initial commit. February 01, 2012
Octocat-spinner-32 res Initial commit. February 01, 2012
Octocat-spinner-32 src Typo. February 01, 2012
Octocat-spinner-32 ReadMe.md Initial commit. February 01, 2012
Octocat-spinner-32 build.bat Initial commit. February 01, 2012
ReadMe.md

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.

Something went wrong with that request. Please try again.