• About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy Policy
  • Change the purpose of use

Tnhelearning.edu.vn - Various useful general information portal

  • Photo
  • Bio
  • How To
  • Tech

How to Launch BAT Files on Windows

February 12, 2024 by admin Category: How To

You are viewing the article How to Launch BAT Files on Windows  at Tnhelearning.edu.vn you can quickly access the necessary information in the table of contents of the article below.

X

This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

This wikiHow teaches you how to launch BAT files (aka batch files) on a Windows computer. Batch files are used for many purposes, such as automating frequently used tasks. You can launch the file in File Explorer as usual, or execute it from the command line in the Command Prompt.

Table of Contents

  • Steps
    • Launch file on File Explorer
    • Launch on Command Prompt

Steps

Launch file on File Explorer

Image titled Run a BAT File on Windows Step 1

Image titled Run a BAT File on Windows Step 1

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/5/52/Run-a-BAT-File-on-Windows-Step-1.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-1.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/5/52/Run-a-BAT-File-on-Windows- Step-1.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-1.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight” :543,”licensing”:”<div class=”mw-parser-output”></div>”}
Open Start

Windows Start

{“smallUrl”:”https://www.wikihow.com/images_en/0/07/Windowsstart.png”,”bigUrl”:”https://www.wikihow.com/images/thumb/0/07/ Windowsstart.png/30px-Windowsstart.png”,”smallWidth”:460,”smallHeight”:460,”bigWidth”:30,”bigHeight”:30,”licensing”:”<div class=”mw-parser-output “></div>”}

. Click the Windows logo at the bottom left of the taskbar to launch the Start menu.

Image titled Run a BAT File on Windows Step 2

Image titled Run a BAT File on Windows Step 2

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/8/8c/Run-a-BAT-File-on-Windows-Step-2.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-2.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/8/8c/Run-a-BAT-File-on-Windows- Step-2.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-2.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight” :545,”licensing”:”<div class=”mw-parser-output”></div>”}
Click

Windows Start Explorer

{“smallUrl”:”https://www.wikihow.com/images_en/0/0d/Windowsstartexplorer.png”,”bigUrl”:”https://www.wikihow.com/images/thumb/0/0d/ Windowsstartexplorer.png/30px-Windowsstartexplorer.png”,”smallWidth”:460,”smallHeight”:460,”bigWidth”:30,”bigHeight”:30,”licensing”:”<div class=”mw-parser-output “></div>”}

File Explorer is in the left column on the Start menu.

  • You can also right-click the Windows icon in the taskbar and select File Explorer .
wikiHow

wikiHow

Staff

A wikiHow Staff Editor reviewed this article to make sure it’s clear and accurate.

wikiHow
wikiHow
Staff

If you don’t see the File Explorer option, right-click Settings .
Then proceed to select the folders that you want to display in the Start menu. In this case it would be File Explorer.
You can also choose Videos, Music, Downloads, and so on.

READ More:   How to Apply the 3 4 5 Rule to Make a Right Angle
Image titled Run a BAT File on Windows Step 3

Image titled Run a BAT File on Windows Step 3

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/6/6c/Run-a-BAT-File-on-Windows-Step-3.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-3.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/6/6c/Run-a-BAT-File-on-Windows- Step-3.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-3.jpg”,”smallWidth”:460,”smallHeight”:351,”bigWidth”:728,”bigHeight” :555,”licensing”:”<div class=”mw-parser-output”></div>”}
Go to the folder containing the BAT file. Navigate to the folder containing the batch file to open, or search by clicking This PC in the left pane and entering the filename in the search bar in the upper right.
Image titled Run a BAT File on Windows Step 4

Image titled Run a BAT File on Windows Step 4

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/3/3c/Run-a-BAT-File-on-Windows-Step-4.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-4.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/3/3c/Run-a-BAT-File-on-Windows- Step-4.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-4.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight” :547,”licensing”:”<div class=”mw-parser-output”></div>”}
Double-click the BAT file. Normally, to launch a batch file, you just need to double-click on the file. If you get an error when opening the BAT file, try launching it as administrator.
Image titled Run a BAT File on Windows Step 5

Image titled Run a BAT File on Windows Step 5

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/3/3f/Run-a-BAT-File-on-Windows-Step-5.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-5.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/3/3f/Run-a-BAT-File-on-Windows- Step-5.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-5.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight” :543,”licensing”:”<div class=”mw-parser-output”></div>”}
Right click on the file and select Run as administrator . Depending on the function for which the batch file is programmed, you may be asked to launch it as administrator.

  • Batch files usually don’t perform many visual tasks on the computer that can change certain features in the background. Therefore, you need to understand the function of the batch file well because sometimes the file is executed successfully even though it looks like nothing happened.

Launch on Command Prompt

Image titled Run a BAT File on Windows Step 6

Image titled Run a BAT File on Windows Step 6

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/3/31/Run-a-BAT-File-on-Windows-Step-6.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-6.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/3/31/Run-a-BAT-File-on-Windows- Step-6.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-6.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight” :543,”licensing”:”<div class=”mw-parser-output”></div>”}
Open Start

Windows Start

{“smallUrl”:”https://www.wikihow.com/images_en/0/07/Windowsstart.png”,”bigUrl”:”https://www.wikihow.com/images/thumb/0/07/ Windowsstart.png/30px-Windowsstart.png”,”smallWidth”:460,”smallHeight”:460,”bigWidth”:30,”bigHeight”:30,”licensing”:”<div class=”mw-parser-output “></div>”}

. Click the Windows logo at the bottom left of the taskbar to launch the Start menu.

Image titled Run a BAT File on Windows Step 7

Image titled Run a BAT File on Windows Step 7

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/49/Run-a-BAT-File-on-Windows-Step-7.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-7.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/4/49/Run-a-BAT-File-on-Windows- Step-7.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-7.jpg”,”smallWidth”:460,”smallHeight”:345,”bigWidth”:728,”bigHeight” :546,”licensing”:”<div class=”mw-parser-output”></div>”}
Type cmd into Start. As you type, Windows filters out the search results and displays them below the text in the Start menu.
Image titled Run a BAT File on Windows Step 8

Image titled Run a BAT File on Windows Step 8

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/18/Run-a-BAT-File-on-Windows-Step-8.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-8.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/18/Run-a-BAT-File-on-Windows- Step-8.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-8.jpg”,”smallWidth”:460,”smallHeight”:343,”bigWidth”:728,”bigHeight” :543,”licensing”:”<div class=”mw-parser-output”></div>”}
Right click on Command Prompt

Windows cmd

{“smallUrl”:”https://www.wikihow.com/images_en/6/66/Windowscmd1.png”,”bigUrl”:”https://www.wikihow.com/images/thumb/6/66/ Windowscmd1.png/36px-Windowscmd1.png”,”smallWidth”:460,”smallHeight”:383,”bigWidth”:36,”bigHeight”:30,”licensing”:”<div class=”mw-parser-output” “></div>”}

. The program has a black window icon with white text in the upper left corner.

READ More:   How to Shave a Dog's Hair
Image titled Run a BAT File on Windows Step 9

Image titled Run a BAT File on Windows Step 9

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/2/25/Run-a-BAT-File-on-Windows-Step-9.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-9.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/2/25/Run-a-BAT-File-on-Windows- Step-9.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-9.jpg”,”smallWidth”:460,”smallHeight”:348,”bigWidth”:728,”bigHeight” :550,”licensing”:”<div class=”mw-parser-output”></div>”}
Click Run as administrator . The step of launching the command prompt as administrator may be required depending on the purpose for which the batch file is programmed.
Image titled Run a BAT File on Windows Step 10

Image titled Run a BAT File on Windows Step 10

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/f/f7/Run-a-BAT-File-on-Windows-Step-10.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-10.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/f/f7/Run-a-BAT-File-on-Windows- Step-10.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-10.jpg”,”smallWidth”:460,”smallHeight”:346,”bigWidth”:728,”bigHeight” :547,”licensing”:”<div class=”mw-parser-output”></div>”}
Enter cd along with the location of the file. Type the letter “cd” (the command used to “change directory”), followed by a space and the location of the directory where the batch file is located. For example, if the batch file is on the desktop and the username is “LAN”, enter:
cd /Users/LAN/Desktop .

  • Don’t forget to enter a space between “cd” and the file location.
Image titled Run a BAT File on Windows Step 11

Image titled Run a BAT File on Windows Step 11

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/1/18/Run-a-BAT-File-on-Windows-Step-11.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-11.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/1/18/Run-a-BAT-File-on-Windows- Step-11.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-11.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight” :541,”licensing”:”<div class=”mw-parser-output”></div>”}
Press ↵ Enter . The current directory will be changed to the directory you specified.
Image titled Run a BAT File on Windows Step 12

Image titled Run a BAT File on Windows Step 12

{“smallUrl”:”https://www.wikihow.com/images_en/thumb/7/7b/Run-a-BAT-File-on-Windows-Step-12.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-12.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/7/7b/Run-a-BAT-File-on-Windows- Step-12.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-12.jpg”,”smallWidth”:460,”smallHeight”:344,”bigWidth”:728,”bigHeight” :544,”licensing”:”<div class=”mw-parser-output”></div>”}
Enter the full name of the BAT file. This means you need to enter the filename with the extension .bat . For example, if the batch file is called “install” then you need to type install.bat at the command prompt.
  • Image titled Run a BAT File on Windows Step 13

    Image titled Run a BAT File on Windows Step 13

    {“smallUrl”:”https://www.wikihow.com/images_en/thumb/4/45/Run-a-BAT-File-on-Windows-Step-13.jpg/v4-728px-Run-a- BAT-File-on-Windows-Step-13.jpg”,”bigUrl”:”https://www.wikihow.com/images/thumb/4/45/Run-a-BAT-File-on-Windows- Step-13.jpg/v4-728px-Run-a-BAT-File-on-Windows-Step-13.jpg”,”smallWidth”:460,”smallHeight”:342,”bigWidth”:728,”bigHeight” :541,”licensing”:”<div class=”mw-parser-output”></div>”}
    Press ↵ Enter . The BAT file will be launched. If you see the command prompt in the same location as before and the mouse pointer is blinking, the batch file has finished running.

    • Don’t forget to record any errors that appear on the Command Prompt when executing the batch file as this can be helpful during troubleshooting if the batch file’s code is incorrect.
  • X

    This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.

    READ More:   How to do something for the first time

    The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.

    This wikiHow teaches you how to launch BAT files (aka batch files) on a Windows computer. Batch files are used for many purposes, such as automating frequently used tasks. You can launch the file in File Explorer as usual, or execute it from the command line in the Command Prompt.

    Thank you for reading this post How to Launch BAT Files on Windows at Tnhelearning.edu.vn You can comment, see more related articles below and hope to help you with interesting information.

    Related Search:

    Related Posts

    How to Create Curved Text in Photoshop
    How to fall asleep faster
    How to Install FBReader to Read eBooks

    Category: How To

    Previous Post: « Top 5 smart and convenient ice making tools you should know
    Next Post: Top 10 most popular products from Lancome brand today »

    Copyright © 2025 · Tnhelearning.edu.vn - Useful Knowledge