⇤ ← Revision 1 as of 2022-05-11 17:09:23
Size: 699
Comment:
|
Size: 735
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## page was renamed from BatchFile |
Batch File
On the Windows operating system, batch files are interpreted scripts. In any modern Windows versions, a batch file is interpreted by cmd.exe.
Contents
Example
A hello world program looks like:
@ECHO OFF ECHO Hello World! PAUSE
The file name must end in .bat or .cmd (case-insensitive).
Executing this will open a terminal window and print:
Hello World! Press any key to continue . . .
The program will wait for any keyboard input and then exit.