Differences between revisions 4 and 5
Revision 4 as of 2023-01-30 14:58:52
Size: 918
Comment:
Revision 5 as of 2023-01-30 18:29:51
Size: 963
Comment:
Deletions are marked like this. Additions are marked like this.
Line 44: Line 44:
 * [[Batch/ShellVariables|Shell variables]]

Batch

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.


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.


Language


CategoryRicottone

Batch (last edited 2023-01-30 18:30:02 by DominicRicottone)