Post by t***@testnospam.nlIs it possible to convert MS-dos batch files to executable files?
I hear that batch is slow and exe is fast, so if it is possible to
convert them....
Any good programs for this action available?
bat2exe. Google reports 3,760 hits. (Note that this compiles to a DOS .exe,
not a Windows program.)
Also bat2pas, which (eventually) gives you similar results (although it
requires a Pascal compiler to actually make a program). Only 5 Google hits
for this, though, and only the first one looks relevant.
On modern computers, the speed difference between batches and compiled
programs is probably not noticable to most people, especially when a batch
relies on external commands. Personally, I'd leave the batch uncompiled. (If
I were to write a program that did the exact same thing as a batch file in
the exact same way (i.e., calling move.exe to move a file), and ran both
under similar circumstances, I'd be very surprised if I noticed a significant
time difference. (Boy, that's a lot of big words.))
There are good reasons to *not* compile a batch file -- things like "easier
to modify" and "easier to verify what it's doing" and "harder to infect a
batch file with a virus" and such.
--
I'm flattered in a very nervous way.