|
Size: 918
Comment:
|
← Revision 7 as of 2025-12-19 19:44:35 ⇥
Size: 896
Comment: Pruning dead links
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| [[Windows|Windows]] is to '''batch scripting''' as [[Linux]] is to [[Shell/shell scripting]]. In any modern Windows operating system, a batch file is interpreted by `cmd.exe`. | [[Windows|Windows]] is to '''batch scripting''' as [[Linux]] is to [[Shell|shell scripting]]. In any modern Windows operating system, a batch file is interpreted by `cmd.exe`. |
| Line 38: | Line 38: |
| * [[Batch/Expansion|Expansion]] | |
| Line 41: | Line 40: |
| * [[Batch/Pipeline|Pipelines]] | |
| Line 44: | Line 42: |
| * [[Batch/ShellVariables|Shell variables]] |
Batch
Windows is to batch scripting as Linux is to shell scripting. In any modern Windows operating system, a batch file is interpreted by cmd.exe.
Example
@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.
