Jump to content

CMD or BAT to EXE compiler what is the best


Recommended Posts


Posted

As far as I know CMD and BAT files cannot be compiled into EXEs !

BAT files contain a number of DOS commmands that are executed when the file runs.

CMD files are something similar.

I don't know exactly the difference between the two of them.

Posted

This really is the fourth such thread in the last two weeks. Forgot to search, eh? :P

Anyways, you have bat2com, (free) and QuickBatchFileCompiler (paid).

Posted

omg i broke the cardinal rule of not searching.

hi gabriel, yes u can... it is called compiling. :P

prathapml

if i compile cmd or bat to EXE w/ like quickbatchfilecompiler

will it still show the cmd window?

thanks!

Posted
will it still show the cmd window?
If compiled with the freeware tool I have, no CMD window is shown. I don't know for sure about QBFC - I heard of it only recently, I haven't tested with it (but since its commercial, gotta be for a good reason :P ).
  • 1 month later...
Posted
omg i broke the cardinal rule of not searching.

hi gabriel, yes u can... it is called compiling. :P

prathapml

if i compile cmd or bat to EXE w/ like quickbatchfilecompiler

will it still show the cmd window?

thanks!

i think you can do it so no window is shown through an option called ghosting

im not sure which application it is though

Posted

i am using BAT2EXE to compile my BAT files and the output is .com but NOT .exe and i think there is no decompiler that can convert .com back to .bat.

actually, if you sure that a com file was compiled from .bat, you can read that .com file by using a hex editor. i still can read what i've writen in a batch after i compiled it to com but a lot of bin code will be added into .com.

After you compiled your batch into .com, that .com file will be same as other .com files which maybe compiled from Assembly or other programming. There is a tool can decompile .com back to .ASM files but not batch.

Read this......

  • 1 year later...
Posted (edited)
will it still show the cmd window?
If compiled with the freeware tool I have, no CMD window is shown. I don't know for sure about QBFC - I heard of it only recently, I haven't tested with it (but since its commercial, gotta be for a good reason :P ).

Sorry for kicking such an OLD topic, I searched a lot but haven't found what I was looking for:

I tried bat2com, bat2exec (also creates a COM file), quickbatchfilecompiler (shareware) and ExeScript (shareware but better).

The first 2 both have the same thing: they DO show a black console window for a short time.

With Quick Batchfile Compiler you can create an EXE that will run hidden.. but then the end file is 146KB.. that's like 73 times bigger then neccessary since bat2exec creates a file little over 2KB.

ExeScript seems to to better: 8.50 KB AND allows the option to hide any window..

But I also know a file HIDE.EXE, it's only 1.60KB (!) and hides any batchfile that is run. My .cmd file is only 250 Bytes... So I was thinking to use the COPY /B option to merge those 2 together.. unfortunately that doesn't work, HIDE.EXE is started.. without any input.

I was wondering if anyone knows other options, perhaps a different compiler or method.

I added BAT2COM.com, BAT2EXEC.exe and HIDE.exe

Edited by ZileXa
Posted

I just tried these out, and of the lot, I like ExeScript the best. The default EXE is 16kb in size however, but you can UPX that down to 8KB.

I think that if you're not paranoid about the pop-up Window, then the freeware programs are the best. Otherwise, ExeScript seems to be the better of the payware versions.

Posted
Just as another option, especially if your batch file is not too long, you could always convert it into an AutoIt script, which can be compiled into a EXE file.

http://www.autoitscript.com/autoit3/

-John

AutoIt is best for more extensive tasks, as the overhead it adds is absolutely astronomical.
i am using BAT2EXE to compile my BAT files and the output is .com but NOT .exe and i think there is no decompiler that can convert .com back to .bat.
I don't know the specifics of BAT2EXE, but most of the batch file "compilers" that exist simply add a (should be) small stub of code that just executes the commands in your batch file, which is appended to the stub, via spawning a shell. There is likely no BAT interpreter present (though 8Kb of code is more than enough to implement one).
Posted (edited)

I just created a collection that allows you to:

- Create an EXE file from your batchfiles

- include ICON for the file

- include other necessary files (DLL or stuff)

The nice thing is: The output is smaller then QuickBatchfile.. perhaps it's even faster

(I compress with 7z using FAST (since batchfile is only text, Ultra compression makes little difference) and after adding icon I UPX, checkout the HOWTO.txt

BATCH2EXE

http://www.savefile.com/projects.php?pid=423945

Edited by ZileXa
Posted

I can't seem to get through on that site. Did you want to possibly e-mail me the files, and then I can put them on a better mirror for you (and everyone else)?

EDIT - Nevermind... it came through... 45 seconds later. Here's a mirror. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...