|
Answer» I have a .BAT file that has been running great. However someone got into it and altered the code and it now crashes. I fixed the code and ran it through the bat2exe.com download that I found on this site. The problem is, the .bat file works fine but when it is converted to the .com format and ran, I get "Bad Command or File name" for each line of code. I would appreciate any insight. Without knowing what was in your batch file it's impossible to give an answer. Bat2exe is an old PROGRAM (1990) and batch files have CHANGED greatly since then. I did find that bat2exe only handles files in 8.3 format, can't handle FOR statements and is iffy with IF statements.
Just for fun, I TRIED it with one of my old batch programs. I got a virus alert "Contains signature of the virus VGEN/26436.0" for my troubles.
Apparently you found other batch commands that are not handled by the program.
:-/Is there any chance of the source code for the original bat2exe program? I am writing a batch file myself and would to compile it to an exe and as being a programmer I would like to know how this is done. I know it has something to do with assembler and the debug command, but apart from that I'm clueless.http://www.robvanderwoude.com/index.htmlCan you please give me the exact url for the source code? it's a large site.http://www.fsref.com/pr/dos98.shtmlI could only find the author (Doug Boling) and the fact that he first wrote an article for PC magazine where the program first APPEARED. Other than that you will need all your Google skills.
There are a lot better Batch Compilers then BAT2EXE.
I use Quick Batch File Compiler from http://www.abyssmedia.com
|