Discussion:
Convert DOS batch file to exe?
(too old to reply)
t***@testnospam.nl
2009-09-17 20:04:13 UTC
Permalink
Is 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?

Thanks!
Esra Sdrawkcab
2009-09-17 20:23:25 UTC
Permalink
Post by t***@testnospam.nl
Is 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....
That was 20 years ago, before NT was invented.
Post by t***@testnospam.nl
Any good programs for this action available?
--
Nuns! Reverse!
Auric__
2009-09-17 20:24:40 UTC
Permalink
Post by t***@testnospam.nl
Is 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.
t***@testnospam.nl
2009-09-17 20:34:42 UTC
Permalink
Post by Auric__
Post by t***@testnospam.nl
Is 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.
Thanks both for your reply.
If it doesn't create a speed difference, okay.
But I want to have a batch file that sends a password and a username.
If this is converted to exe it is harder to intercept.

Again thanks
Pegasus
2009-09-17 20:44:04 UTC
Permalink
Post by t***@testnospam.nl
Post by Auric__
Post by t***@testnospam.nl
Is 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.
Thanks both for your reply.
If it doesn't create a speed difference, okay.
But I want to have a batch file that sends a password and a username.
If this is converted to exe it is harder to intercept.
It may be a little harder to *extract* the password from the .exe file but
it won't be any harder to *intercept* it while it is being sent to the
application that asks for it. If you give more details then someone may be
able to suggest a secure method that does not rely on compilation.
t***@testnospam.nl
2009-09-17 20:47:30 UTC
Permalink
Post by Pegasus
It may be a little harder to *extract* the password from the .exe file but
it won't be any harder to *intercept* it while it is being sent to the
application that asks for it. If you give more details then someone may be
able to suggest a secure method that does not rely on compilation.
Your suggestion from a discussion yesterday...

I want to send this everytime that the computer boots.
@echo off
net use \\server\share\folder /user:Jos open
Pegasus
2009-09-17 21:35:52 UTC
Permalink
Post by t***@testnospam.nl
Post by Pegasus
It may be a little harder to *extract* the password from the .exe file but
it won't be any harder to *intercept* it while it is being sent to the
application that asks for it. If you give more details then someone may be
able to suggest a secure method that does not rely on compilation.
Your suggestion from a discussion yesterday...
I want to send this everytime that the computer boots.
@echo off
net use \\server\share\folder /user:Jos open
Same recommendation as yesterday: Create a matching account on \\server!
Auric__
2009-09-17 21:17:16 UTC
Permalink
Post by t***@testnospam.nl
Post by Auric__
Post by t***@testnospam.nl
Is 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.
Thanks both for your reply.
If it doesn't create a speed difference, okay.
But I want to have a batch file that sends a password and a username.
If this is converted to exe it is harder to intercept.
The password is be stored in *PLAIN TEXT* in the program created by bat2exe
or any similar compiler. Best bet would be to find some other way to do
this, or else encrypt the password beforehand and have the batch decrypt it
before sending it. (I can't help you there, although I'm sure any of the
other regs here can...)
--
I cannabalized every ounce of my pain.
Loading...