How To Create And Run Batch File On Windows 10 PC Or Laptop

its a tough task to create and Run Batch File on Windows PC or Laptop compare to create a normal file on windows 10. Batch files are the special kind of text files with a .bat extension. Batch files include multiple numbers of commands by which you can run the various tasks.

You can run various kind of day to day task by writing the batch file. You can write the batch file in the notepad. Notepad is In-built on the computer. For writing this you can you should know the Basic use of Command Prompt.

Follow the Steps Given Below to Create the Batch Files:

Create and Run Batch File on Windows 10 Laptop or PC
Create and Run Batch File on Windows 10 Laptop or PC

Step 1: Press on the Start Button, available at the left bottom side.
Step 2: Click on the All Programs.
Step 3: Double Click on the Notepad and it will open.
Step 4: Now you need to write the command to create the batch file.
Step 5: Write @ECHO OFF in the Notepad.

This command will create the new batch file. You will be able to see the confirmation of a new file on your device screen.

Step 6: You need to save the file like you save all the other files. It will save with the extension .bat.

You can save the file wherever you want to save it. By default, it will be saved in My Documents.
Now your file is created and it will not run by itself, so you need to run the file. Follow the steps to run the batch file:

Step 1: Open the batch file from where you have saved it.
Step 2: Double Click on the file to open it.
Step 3: After it opens to write the command for the work you want.

So in this way you can create and run a simple batch file.

So now let us how to create the Advanced Batch File. Follow the steps given below:

Step 1: Open your notepad and type the command to create the advanced batch file. You need to write a command which could include the coordination of Operating System, Network and Hardware.

Step 2: Once you have finished writing command you need to save the file.

Now let us see how to run the advanced batch file. You can run this file same as how you run the batch file but you can schedule the running time so you don’t need to do it manually. Follow the steps given below:

Step 1: Click on the Start Button.
Step 2: Open the Task Scheduler.
Step 3: Right-click on the Task Scheduler.
Step 4: Click on the New option.
Step 5: Add your batch file in that.
Step 6: Click on the Next to set the Time Preferences.
Step 7: Save all the settings.
Step 8: Click on finish.

So by this, your batch files work on the Windows 10 PC or Laptop. Write back to us comment and more queries on Batch File on windows PC or Laptop running on Windows 10.

Was this post helpful?

Leave a Reply

Your email address will not be published. Required fields are marked *