How can I use a batch shortcut to open multiple Windows Explorer folders, and a Notepad file?

11,753

Start.exe is your friend. :)

Starts a separate window to run a specified program or command.

Try something like this in a batch file:

@echo off
start explorer c:\
start explorer c:\Windows
start explorer "g:\Path With Spaces"
start notepad.exe g:\filename.txt
Share:
11,753

Related videos on Youtube

ModelHX
Author by

ModelHX

Business analyst, Python scripter, spreadsheet wrangler, tabletop gamer.

Updated on September 18, 2022

Comments

  • ModelHX
    ModelHX over 1 year

    I've recently built a computer with an SSD in it (my first) and am in the process of moving a select few of my Steam games to the SSD and symbolically linking them to where they're supposed to be on the main (mechanical) hard drive so that Steam doesn't throw a fit and I get maximum performance. To this end, I'm finding myself repeatedly navigating to both target folders to move the relevant files and opening a specific Notepad file to enter the relevant paths into a template I've got set up that I paste into the Windows command prompt to create the symlink. This is annoying.

    I've read up a little bit on batch shortcuts, and have a basic understanding on how to use one to open programs and files. However, I'm finding a lot of confusing suggestions on how to use batch shortcuts to open specific folders in Windows Explorer, and none of them deal with opening multiple folders at once. Any assistance on writing the shortcut would be greatly appreciated. Thank you for your time.

    • soandos
      soandos almost 12 years
      Why don't you just create a list of path names, and the symlink locations, and then use a for loop in powershell to create all of the symlinks?
  • Ƭᴇcʜιᴇ007
    Ƭᴇcʜιᴇ007 almost 5 years
    @Moab Start has a MIN switch to help with that. :) I.E.: start /MIN explorer c:\
  • Ƭᴇcʜιᴇ007
    Ƭᴇcʜιᴇ007 almost 5 years
    @Moab I'm not sure what you're asking me...?