How To Create a Batch File In Windows 11

preview_player
Показать описание
Learn how you can create a batch file on your Windows 11 computer. You can create simple batch files, or even complex ones. The tool for this is a text editor, namely notepad which is already pre-installed on the computer.

A batch file is a script file that stores commands to be executed in a sequential order. You can automate routine tasks without repetitively having to input the same commands. Load programs, run multiple processes or perform repetitive actions in a sequence on your Windows computer.

The first line of commands in a batch file on notepad always begins with the command @ECHO, followed by a series of other commands depending on what you want to achieve with them.

Once you finish typing the commands, turn it into an executable batch file by going to File, then select Save as.
Type the name of the file under File name and be sure to include .bat at the end. Under Save as type, click on the drop down arrow and select All files.
Choose the location where you want the file to be saved and click on Save. This will save your file as a batch file.

To execute the batch file, double click on it and it opens a command prompt, performing the commands you intended.

-----My Gear for YouTube videos-----

As full disclosure, I use affiliate links on this channel and purchasing through these links earns me a small commission. The price you pay will be the same!

Рекомендации по теме
Комментарии
Автор

I like to make batch files for DOS/DosBox emulator only, because DOS let us create executable that access the hardware directly without to get a message about a protection violation. And this is not allowed in Windows batch files. So you can stay in slavery with Windows, or you can switch to freedom with DosBox god mode like the Big Boss highlander of the emulated system.

maxmuster