What Is Windows Batch File

Q

What is Windows Batch File?

✍: FYIcenter.com

A

A Windows batch file (also called batch program or batch script) is a text file that contains one or more Windows commands and has a .bat or .cmd file name extension.

When you run a batch file, Windows will use CMD.EXE program to runs the commands sequentially as they appear in the batch file.

Here is an example of a Windows batch file, Ping.bat:

@echo off
echo Pinging google.com...
ping google.com > ping.txt
type ping.txt

If you run the above batch file, Windows will run 4 commands listed in the batch file one by one.

 

Introduction of Windows Batch File

⇒⇒Windows Batch File Tutorials

2017-12-04, 204👍, 0💬