How to Create and Run Batch File in Windows 10

You might be aware that on Windows 10 device, one batch file is present, which comprises of .bat extension that comprises innumerable orders; it is understood by the Command Prompt as well as work in order for doing a different activity. You don’t need to waste time typing orders. Rather, go for the batch file on your Windows 10 device.
Generally, users put their orders manually for performing any single action. The presence of a batch file makes the work quicker of typing orders again, and this leads to saving plenty of time.
Note: This blog is applicable for Windows 10 users.
Making a batch file 
  1. Firstly, go to Start.
  2. Then, look for the Notepad option.
  3. After that, press on the result given on the top for starting the application.
  4. Next, write the given order.
”@ECHO OFF
ECHO Congratulations! Your first batch file executed successfully.”
PAUSE”
  • Next, press the File menu.
  • After that, choose the Save option.
  • Next, write the title of the script.
Making an Actionable batch file
  1. Firstly, launch the Start option.
  2. Then, look for Notepad.
  3. After that, press the result given on the top for starting the application.
  4. Next, you need to copy-paste the given order.
”net use z: \\PATH-NETWORK-SHARE\FOLDER-NAME /user:YOUR-USERNAME YOUR-PASSWORD”
  • Then, press on file.
  • Next, choose Save as.
  • Lastly, write the name of the script — for instance, map-z-drive.bat.
Running a batch file 
  1. Firstly, launch File Explorer.
  2. Then, go to folder that has the needed script.
  3. Next, you need to double click on batch file for running it.
Command Prompt
  1. Firstly, tap on the Start option.
  2. Then, find Command Prompt.
  3. Next, do a right-click on the result given at the top.
  4. After that, choose Run as administrator.
  5. Then, write the given order and batch’s title.
”C:\PATH\TO\FOLDER\BATCH-NAME.bat”
  • Next, tap on the Enter button of your keyboard.
Run Scheduled Batch File
  1. Firstly, tap on the Start option.
  2. Then, find the Task Scheduler.
  3. After that, press on the result presented at the top for launching the application.
  4. Next, do a right-click on ‘Task Scheduler Library.’
  5. Then, choose the New Folder.
  6. After that, write the title of the folder. For instance, MyScript.
  7. Next, tap on the OK option.
  8. Then, extend ‘Task Scheduler Library’.
  9. After that, do a right-click on the MyScripts folder.
  10. Next, choose Create Basic Task.
  11. Into the ‘Name’ area, write a brief descriptive name — for instance, SystemInfoBatch.
  12. After that, tap on the Next option.
  13. Next, choose Monthly.
  14. Then, tap on Next.
  15. After that, with the help of ‘Start’ settings, mention the time and date, the task must start running. By the ‘Monthly’ pull-down menu for selecting the month of the year on which you wish running the task.
  16. Then, with the help of the ‘Days’ pull-down menu, you need to mention the days that the task shall be running.
  17. After that, press on Next.
  18. Next, choose the Start a program option for running the batch file.
  19. Into the ‘Program/script area, mention the location of the batch file.
  20. Lastly, press Finish.
Devin Smith is a creative person who has been writing blogs and articles about cyber security and utility software programes. He writes about the latest updates regarding office.com/setup and how it can improve the work experience of users. His articles have been published in many popular e-magazines, blogs and websites.

Comments

Popular posts from this blog

Guide to Reporting Bug, Issue or Vulnerability to Microsoft

How to Fix Common Netflix Error Codes

Best Personal Voice Assistants in 2019