Hello friends, Today I will tell you a method on how to create a Batch file in Windows 10. We have shared a step by guide to create any DOS Batch files on Windows PC/Laptop. Users can create file in format like .cmd, .bat, .btm. In just 5 easy steps you can have your Batch file in Windows 10.
What are the Batch Files in Windows PC/Laptop?
Basically, a batch file is a medium between you an CMD. Let us have a rough idea about CMD. Windows has a command line interpreter that is called Command Prompt. It takes the input from the user and processes them. A batch file (.bat, .cmd, .btm) is a file that consists of commands that are readable for the command prompt. When a user runs a batch file, then the code written in it is executed with the help of command line interpreter that is Command prompt. The set of command is called the batch script. A batch file can be made by machine automatically or by humans manually.
How to Create a Batch File in Windows 10 – 100% Working
We have seen that what are batch files and what does it do even how does it work in the Windows operating system as well. This section will explain to you that how to create a batch file in Windows 10. If you are running a Windows 10 Pc or Laptop, then you can use this guide to learn how to create a batch file in Windows 10. However, this method is an official method to run a batch file in Windows 10. However, if you are using another Windows operating system version such as 8, 8.1, 7 or even XP or 98, then you can use the same method to know that how to create a batch file in Windows 10. Without taking more time let’s start the guide.
- Go to the Start Menu on your Windows 10 PC/Laptop.
- Now, type notepad and search for it. Then, select it from the results.
- Once the Notepad application has been opened then copy and paste the code into it.
title My Test Batch File
:: See the title at the top. And this comment will not appear in the command prompt.
echo Test file executed.
echo I am too lazy to write commands again and again.
- Now, save it as the yourwishedname.bat file.
- After that, simply double click on it and you will see the code has been executed and the message has been displayed on the cmd.
Last Words on How to Create a Batch File in Windows 10 – 100% Working
In this manner, you can easily learn that how to create a batch file in Windows 10. In this article, I have given my code to you guys which is very simple and easy it will only display a message on your command prompt screen. You can use more codes to make your batch file exciting and multifunctional. However, if you don’t want to code your batch file then you can download templates from the interest they are free to download and use as well. The saving and execution method has been explained to you so you can now use any batch file on your Windows 10 PC/Laptop. Share this with your relatives and friends so that they can also learn about how to create a batch file in Windows 10.