Given "What is a Batch file but a command window masquerading as a file!"
, you are agreeing that a batch file is not a file. It is a window. You use strange versions of English at times.
Please stop this irritating habit of putting words into other people's mouths and then insulting them because of something that you, not they said.
I did not mention Windows PE executables. Do you have to continue your long-standing trolling against me in the technical forums?
A batch file is a kind of script file in DOS, OS/2 and Microsoft Windows. It consists of a series of commands to be executed by the command-line interpreter, stored in a plain text file. A batch file may contain any command the interpreter accepts interactively and use constructs that enable conditional branching and looping within the batch file, such as "if", "for", "goto" and labels. The term "batch" is from batch processing, meaning "non-interactive execution", though a batch file may not process a batch of multiple data.
Similar to Job Control Language (JCL) and other systems on mainframe and minicomputer systems, batch files were added to ease the work required for certain regular tasks by allowing the user to set up a script to automate them. 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.
That is the broader definition of an executable file, that has been around since before MSDOS was created, never mind Windows.
It is also the reason all Internet Security systems vet them as executables, because by definition they cause specific code to be executed.
Your version would mean that non-compiled Basic would not be called a program, because it has to be fed by the OS to a Basic interpreter. In the same way as Windows feeds a batch file to its own built-in interpreter.
Unlike Windows 98 and earlier, the Windows NT family of operating systems does not depend on MS-DOS. Windows NT introduced an enhanced 32-bit command interpreter (cmd.exe) that could execute scripts with either the .CMD or .BAT extension.
Leave it and let the OP decide on which method he wishes to use
. There is no good reason for any of these attacks on me or my method. I maintain mine is the best, but accept that the propounders of other methods prefer theirs.
Just cool it, the two of you
My broadband basic info/help site - www.robertos.me.uk.
Domains, site and mail hosting - Tsohost
Connection - AAISP Home::1 80/20. Sync 63679/13080Kbps @ 600m. BQMs - IPv4
Edited by RobertoS (Tue 06-Jun-17 16:13:08)