English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2007-03-09 06:02:04 · 4 answers · asked by Anonymous in Computers & Internet Software

4 answers

You have to write a program. Within the program you have to call the operating system commands in the same order as they appear in the batch file.

If you want to do it automatically, write a program that read a .bat file line by line in a loop and call system function as per the command that appear on the line.

2007-03-09 06:20:24 · answer #1 · answered by Chiya 2 · 0 0

The truth is you can't. A .bat file is just a text file with a list of commands to execute one after another. A .exe file is an executable file which is usually programming code that has been compiled into a language that only the computer can understand. Changing the extension will not change what's in it.

2007-03-09 06:06:47 · answer #2 · answered by justaguyok 2 · 0 0

I don't believe there is a way to convert them directly. You would probably have to write a program that does the job of the .bat file and compile that into a .exe. I'm not exactly sure why you would want to convert a .bat into a .exe as the .bat is already executable.

2007-03-09 06:05:41 · answer #3 · answered by rowancompsciguy 3 · 0 0

You don't. A .bat is a series on command that run in the DOS environment. A .exe file is a program that has been complied into machine language and runs directly on the microporcessor.

2007-03-09 06:06:17 · answer #4 · answered by dewcoons 7 · 0 0

fedest.com, questions and answers