first_basic_batch

PHOTO EMBED

Mon Dec 05 2022 00:17:42 GMT+0000 (Coordinated Universal Time)

Saved by @savabeh191

@ECHO OFF
ECHO Hello World! Your first batch file was printed on the screen successfully.
PAUSE
content_copyCOPY

The above script outputs the phrase, "Hello World! Your first batch file was printed on the screen successfully," on the screen. @ECHO OFF — Shows the message on a clean line disabling the display prompt. Usually, this line goes at the beginning of the file. (You can use the command without the "@" symbol, but it's recommended to include it to show a cleaner return.) ECHO — The command prints the text after the space on the screen. PAUSE — Allows the window to stay open after the command has been executed. Otherwise, the window will close automatically as soon as the script finishes executing. You can use this command at the end of the script or after a specific command when running multiple tasks and wanting to pause between each line.

https://www.windowscentral.com/how-create-and-run-batch-file-windows-10