banner



How To Open Bat File In Windows 10

In Windows, you can create a simple batch script file to open multiple folders at once with a double-click or keyboard shortcut. Here're the verbal steps.

You can easily open the file explorer window using the Win + E keyboard shortcut and navigate to the binder y'all desire to open.  Alternatively, you can pivot frequently used folders to the taskbar. All the same, if yous are constantly opening multiple directories, it is amend to create a batch script to open folders at once. This reduces the repetitive work. For example, every morning as soon as I start the system, I open up three folders as part of my workflow. Though not a big bargain, it is withal a tedious chore. So, I created a unproblematic batch file that I execute as needed to open all folders at once.

In this quick and piece of cake guide, let me share the steps to create a batch file to open multiple folders at in one case in Windows 10.

How to Create Batch File to Open Multiple Folders At In one case

To open multiple folders at in one case, create the batch file using the script given beneath. Once created, double-click on the batch file to open the folders. Hither're the exact steps you should follow.

  1. Starting time, become to the desktop in Windows 10.
  2. Correct-click on the desktop.
  3. Select the "New → Text Document" option from the right-click card.
    New-file-110820
  4. Name the text file as "OpenFolders.bat". Make sure you replace the .txt extension with .bat.
  5. After creating the bat file, correct-click on it and select "Edit".
    Batch-file-to-open-multiple-folders-110820
  6. The bat file will be opened in the Notepad. Here paste the below code in it. Replace the dummy folder paths with the bodily folder paths.
    @repeat off first %SystemRoot%\explorer.exe "Eastward:\dummy\path\to\folder1" start %SystemRoot%\explorer.exe "E:\dummy\path\to\folder2" start %SystemRoot%\explorer.exe "Due east:\dummy\path\to\folder3"
  7. To add more folders, duplicate the outset line and add the folder path.
    Batch-script-to-open-multiple-folders-110820
  8. Printing "Ctrl + S" or select "File → Salvage" to salvage the batch file.
  9. Shut the Notepad window.

That is all. Whenever you desire to open different folders at one time, simply double-click on the batch file. Information technology will open all the folders for you.

Add together Keyboard Shortcut to Run Batch File

To make things a bit easier, you tin can add a keyboard shortcut to run the batch file. That way, you don't accept to specifically go to the desktop and click on the batch file. Pressing the keyboard shortcut from anywhere will execute the batch script to open up the folders. To add the keybinding, we going to utilise the AutoHotKey.

  1. Get-go, install AutoHotKey.
  2. Next, create a text file on the desktop and proper noun information technology "OpenFolders.ahk". It is important that you replace .txt with .ahk.
  3. Right-click on the file and select "Edit Script".
  4. Copy and paste the below code in the opened file. Change the dummy path with the bodily path of the batch file.
    ;Press Alt + R !R:: Run, "C:\Users\Username\Desktop\OpenFolders.bat" return
  5. Save the file with Ctrl + South shortcut.
  6. Close the Notepad.
  7. Double-click on the .ahk file y'all just created.

That is all. From now on, whenever you want to open different folders at once, printing the Alt + R keyboard shortcut. If you want to, you can customize the keyboard shortcut. Take a await at the AutoHotKey documentation to know how to ready the key combinations.

I promise that helps. If you are stuck or need some help, comment below and I will attempt to help as much as possible.

Source: https://windowsloop.com/batch-script-file-to-open-multiple-folders/

Posted by: negronforstand.blogspot.com

0 Response to "How To Open Bat File In Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel