On our Previous Post We just learned about Hacking and its Types. But this post is about to "Make Bat File" Hope you guys gonna like this basics of batch file creation.
The Term "batch" is through the batch processing, the meaning is "non-interactive execution", batch files may never process an multiple batch of data.
The batch File is the collection or the list of serious commands that are to be processed in an sequence and also without the user input or intervention.
With the computer running a windows operating system, the batch file is stored with an extension of .bat. Other OS may define a batch scrip in the shell scripts, containing the list of commands to be executed one after the other.
Batch Files are used to help run multiple tasks runs at a time and helps to perform a repetitive tasks.
For Example, A batch file is used to process log files also to back up files, runs a calculations , other functions that require multiple commands to run. The huge advantages of a batch file is that it can started at any time without anyone help and then left alone until they finished their work.
Here the steps to make bat file on any computer system with windows operating system.
(MS-DOS or Windows).
Step 1: Click Start and type notepad in the run box and hit enter.
Step 2: When the Notepad opened, type the below batch file codes.
![]() |
Make Bat File |
Basics Of Batch File
A batch file is the type of script files in windows, Dos and os/2, contains the serious of commands to be executed through the command-line interpreter which is stored in an normal text file.The Term "batch" is through the batch processing, the meaning is "non-interactive execution", batch files may never process an multiple batch of data.
The batch File is the collection or the list of serious commands that are to be processed in an sequence and also without the user input or intervention.
With the computer running a windows operating system, the batch file is stored with an extension of .bat. Other OS may define a batch scrip in the shell scripts, containing the list of commands to be executed one after the other.
Batch Files are used to help run multiple tasks runs at a time and helps to perform a repetitive tasks.
For Example, A batch file is used to process log files also to back up files, runs a calculations , other functions that require multiple commands to run. The huge advantages of a batch file is that it can started at any time without anyone help and then left alone until they finished their work.
How To Create a Bat File
Here the steps to make bat file on any computer system with windows operating system.
(MS-DOS or Windows).
Make Bat File In Windows
In the windows operating system , we can create a batch file using the below steps in MS-Dos command line section. In windows we can use any normal text editor such wordpad or notepad to make bat file as long as the file extension ends with an .bat. From the below example , we can use the normal text editor means the notepad to make a bat file.Step 1: Click Start and type notepad in the run box and hit enter.
Step 2: When the Notepad opened, type the below batch file codes.
@echo off
echo I'm A Batch File
pause
dir c:\windows
pause
Step 3: Save as test.bat or on your wish with any file name but the extension should .bat.
Step 4: Now to Run the batch file double click the .bat extension file which you had just created.
Once it completed the running process it closes automatically.
Make Bat File In MS-DOS
Step 1: Open an MS-DOS command window or start the MS-DOS.
Step 2: In the MS-DOS command prompt, type: edit test.bat and then hit enter.
If you typed correctly then you can see a blue edit screen. In the blue edit screen, type:
@echo off
echo I'm A Batch File
pause
dir c:\windows
pause
when the above codes are typed now click file and choose the exit option; when it prompted to save, click yes. When we don't have mouse we can perform these task by pressing alt+f to get the access of the file menu and then x to exit and then hit enter to save changes.
When you had finished come back at the ms-dos prompt, type: test and hit enter to execute the test.bat file. Because the first line is pause, you will first be prompted to hit a key. After doing it, the batch file runs line-by-line; in this file we listing the files in windows system directories.
Hope that now you got some basics ideas about to Make Bat File. I can explain you some of the advanced batch file creation in the upcoming blog posts.
Have A Great Day Guys!!!!
Let's Make Bat File [ Batch File Basics] - Burny Ideas
Reviewed by aa
on
December 19, 2018
Rating:
![Let's Make Bat File [ Batch File Basics] - Burny Ideas](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiELpVKKYThyphenhyphenne5hnYKZdg8onqNcvHy0UFQIZA5j23chf7pxcF63eOJJWIrPn6ZCYE5WpptopqNI7dmsaSkKRmrnUnB8p6jkJc2nAK5VHSnBAKjdfQa6JxnvZMrwredqOKPCM3xqCx049w/s72-c/make+bat+file.jpg)
No comments: