Computing.Net > Forums > Programming > Compile a .BAT to a .EXE

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Compile a .BAT to a .EXE

Reply to Message Icon

Name: BatchFreak
Date: November 5, 2008 at 17:36:47 Pacific
OS: Windows Xp Pro
CPU/Ram: 2.4 ghz/ 512 mb
Product: Dell
Comment:

The title pretty much says it all, what program do I use? I have Bat-To-Exe converter by Faith Kodak, but sometimes it just stalls out on me and it wont let me use half the options it has.

Im looking for a better one.

I only Batch if possible, 2000 more lines of code, oh well.



Sponsored Link
Ads by Google

Response Number 1
Name: Valerie (by Garibaldi)
Date: November 5, 2008 at 17:46:33 Pacific
Reply:

You've just gotta learn to Google

http://www.google.co.nz/search?hl=e...


0

Response Number 2
Name: BatchFreak
Date: November 5, 2008 at 17:50:52 Pacific
Reply:

I have googled, but none of them are working for me...

I only Batch if possible, 2000 more lines of code, oh well.


0

Response Number 3
Name: Valerie (by Garibaldi)
Date: November 5, 2008 at 17:57:25 Pacific
Reply:

Maybe if you described the problems someone might be able to assist. To just mention that none of them are working for you indicates that any problem is with you. i.e. if others can get them to perform why can't you?


0

Response Number 4
Name: BatchFreak
Date: November 5, 2008 at 18:06:23 Pacific
Reply:

Ok well ill start with the one im currently using, Bat to exe converter by Faith kodak.

I will browse and select the batch file, the ectra binaries, and the icon file. I will select the place I want it saved, and fill in the version, company, Etc.

When I hit compile 9 times out of ten it will look like its doing something but when I search for the executable it isn't there.

I only Batch if possible, 2000 more lines of code, oh well.


0

Response Number 5
Name: Valerie (by Garibaldi)
Date: November 5, 2008 at 19:04:29 Pacific
Reply:

I downloaded the bat to exe by Fatih Kodak and working under the principles of KISS I selected a bat file and noted the exe name and destination, hit on Compile, waited for the prog to do its thing. The exe was created precisely where it was supposed to be and ran without problem. That's the first thing you should try before proceeding with binaries etc.

Also note that the name is Fatih Kodak not Faith. Programming problems are often caused by inattention to detail/spelling.


0

Related Posts

See More



Response Number 6
Name: BatchFreak
Date: November 5, 2008 at 20:00:30 Pacific
Reply:

It works fine with just binaries, but did you try the bottom options, or an icon file, I ve narrowed down that that seems to mess it up.

I only Batch if possible, 2000 more lines of code, oh well.


0

Response Number 7
Name: Judago
Date: November 6, 2008 at 00:14:34 Pacific
Reply:

The batch file compiler from Fatih Kodak can be a very useful tool, adding icon and include files and the "executable" is often smaller than the batch file.

I'm not sure you could really call it a compiler, try "compiling" the line below, you can use it as is or include it into one of your batch's. The pause is just to stop the batch getting deleted before notepad can open it.


start "" notepad "%~dpnx0"
pause


This should display a copy of the batch file in it's original form, the actual file displayed should be in a sub directory of %temp%. This directory is deleted on a normal exit, if <ctrl>+<c>, the close button or another abnormal termination of the batch occurs then the directory, along with your batch, will remain in the %temp% folder until it's deleted by some other process(like disk cleanup).

The code isn't compiled the way "real" executables are, this process is more akin to a program installer, compressed files and an install script.

It isn't what one might expect, although it remains a handy tool in many respects. It's just worth noting that passwords or other sensitive data could be extracted under the right circumstances.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Compile a .BAT to a .EXE

bat2exe help www.computing.net/answers/programming/bat2exe-help/11270.html

getting a single file from a .exe www.computing.net/answers/programming/getting-a-single-file-from-a-exe/10357.html

.bat to .exe www.computing.net/answers/programming/bat-to-exe/15359.html