✔ 最佳答案
we cannot bat. file to exe. file or vice versa, coz. they are different types of files:
In MS-DOS, OS/2, and Windows, a batch file is a text file containing a series of commands intended to be executed by the command interpreter. When a batch file is run, the shell program (usually COMMAND.COM or cmd.exe) reads the file and executes its commands, normally line-by-line. A batch file is analogous to a shell script in Unix-like operating systems.
Batch files are useful for running a series of executables automatically. Many system administrators use them to automate tedious processes. Although batch files support elementary program flow commands such as if and goto, they are not well-suited for general-purpose programming.
DOS batch files have the filename extension .BAT. Batch files for other environments may have different extensions, e.g. .CMD in Windows NT and OS/2, or .BTM in 4DOS and related shells.
and
EXE is the common filename extension for denoting an executable file (a program) in the OpenVMS, DOS, Microsoft Windows, and OS/2 operating systems.
In Microsoft Windows, a user can expect that double-clicking on an exe file will open a program, unless it is incompatible or broken. This is useful in avoiding computer viruses. If a user receives a file that claims to be a picture or document, but it has the ".exe" extension, it is likely to be a virus or Trojan horse that the sender is trying to trick them into running. This does not mean that all .exe files are viruses or trojans, just that many viruses and trojans are .exe files.
2007-07-22 08:40:00 補充:
cannot change to and vice versa......