+91 9116117170

What is a batch file? | Cyberops

What is a batch file?

By Chandan Singh 0 Comment April 28, 2017

Often, many have heard of the command file. With the help of many “advanced” users perform various automated tasks on the computer. What is a batch file, and where to get it?

Batch file – it is a file of successive commands that Windows will perform when it starts up. The batch file usually has the extension * .bat. Consider the possibility of batch files with a simple example – create a batch file that will clean the Temp folder of the temporary files in the root of drive C.

All commands that can be used in a batch file must comply with the command-line syntax. Windows Help contains a detailed description of the syntax of these commands. Create a BAT file, you can use a plain text editor such as Notepad. Opening the notebook in it need to write a line like this:

DEL C: Temp /S /Q

Followed by keeping this file in any convenient place, and change the extension from txt to bat.

This command will produce delete all the files in the Temp folder.

The key /Sis needed to remove the files in the folder, and the key /Q– to turn off the output confirmation to delete the files.

Launching a simple batch file, you can easily clean the temporary folder of the collected files.

What is a batch file from the reduced notes should be clear? Command files provide a great opportunity for automating recurring processes and similar actions. However, for more effective use should explore further command line parameters.

error: Content is protected by Cyberops !!