Open File Explorer with pre-defined directory?

Page 1 of 3 123 LastLast

  1. Posts : 63
    Win10
       #1

    Open File Explorer with pre-defined directory?


    In old Win7 users could place a shortcut on TaskBar then open Properties of this shortcut, go to "Shortcut" tab and enter

    %windir%\explorer.exe /n,/e,D:\data

    This opens (when clicked) Windows Explorer and mark and expands directory D:\data\

    Unfortunately this does not work any more in Win10.

    What is the corresponding solution in Win10?

    Claudia
      My Computer


  2. Posts : 31,649
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    Welcome to TenForums @clsven

    First, pin File Explorer to the task bar. You can then click and drag a folder (such as Videos) and drop it on the File Explorer icon to pin it to File Explorer. The list of pinned folders can be accessed by right-clicking on the File Explorer icon. Select a folder from the list and you will open File Explorer at that folder. This is the same list of pinned folders that you will see in File Explorer's Quick Access.

    Open File Explorer with pre-defined directory?-image.png
      My Computers


  3. Posts : 392
    W10
       #3

    Try this:
    Code:
    explorer.exe /n,folder_path
    From here: Windows 10 File Explorer Command Line Switches You May Not Know - Next of Windows
      My Computer


  4. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #4

    Tried it, it works!
      My Computers


  5. Posts : 63
    Win10
    Thread Starter
       #5

    jdc1 said:
    Try this:
    Code:
    explorer.exe /n,folder_path
    Yes, I know the switches.
    The question is WHERE can I enter them?

    I don't want to open a terminal/CmdPrompt and type it in manually.

    The switch should be added to TaskBar File Explorer Shortcut directly.

    Again: When I right-click on FileExplorer Icon in TaskBar, then right-click on "File Explorer" context sub entry and go to Shortcut Tab then I cannot enter the switches/parameters. the "Target" entry field is greyed out/disabled for editing.

    Do I have to get administrator privilege for my user to let me enter something in "Target" entry field?

    How do I get TEMPORARILY Admin permissions for this task?

    Claudia
      My Computer


  6. Posts : 13,301
    Windows 10 Pro (x64) 21H2 19044.1526
       #6

    Just create a shortcut.
    desktop/Rightclick/ new /new shortcut
    Attachment 241023
    click next and name it what you want.
      My Computers


  7. Posts : 63
    Win10
    Thread Starter
       #7

    Ok, that means: Users can NOT add switches/parameters to existing, already pinned Shortcuts in TaskBar.

    That means Win 10 is getting more uncomfortable: Users have ....

    1. to create a shortcut on Desktop with switches/parameters
    2. drag/pin this shortcut to TaskBar
    3. remove Shortcut from Desktop

    Correct?
      My Computer


  8. Posts : 13,301
    Windows 10 Pro (x64) 21H2 19044.1526
       #8

    If the shortcut is on the taskbar it has to be unpinned first . then a simple right click/ properties
    will allow you to modify it.
    Just as easy is to create a new shortcut , unpin the old and put the new in its place.
    Shouldn't need Administrator privileges for this.
      My Computers


  9. Posts : 392
    W10
       #9

    clsven said:
    Ok, that means: Users can NOT add switches/parameters to existing, already pinned Shortcuts in TaskBar.

    That means Win 10 is getting more uncomfortable: Users have ....

    1. to create a shortcut on Desktop with switches/parameters
    2. drag/pin this shortcut to TaskBar
    3. remove Shortcut from Desktop

    Correct?
    I created an explorer.exe shortcut named EXPLORER on my Desktop (as I didn't have one already in the taskbar to edit).
    I pinned it to my taskbar
    I right clicked on it, then right clicked on the word EXPLORER and selected Properties
    In the properties dialog I was able to change the target from C:\Windows\explorer.exe to explorer.exe /n,C:\Users\John\Downloads (which is my Downloads folder in my User profile).
    Opened and closed it several times and it still works (have not rebooted - but I don't think that that'll matter).

    FYI - the existing explorer shortcut seems to not be editable and is actually a part of the Internet Explorer\Quick Launch buried in the AppData folder for that User. I'm not going to spend the time trying to edit it as that doesn't seem to be a part of your question.

    If that's what you'd like, please post back and we'll see if we can figure out how to edit it
      My Computer


  10. Posts : 63
    Win10
    Thread Starter
       #10

    Ok, I created now successfully a shortcut with pre-defined directory and pinned it to the Taskbar.

    When I click on it then File Explorer opens,
    However in the TaskBar a second, new Icon for File Explorer appears representing the just opened File Explorer Window.

    Isn't there a way to "group" Icons in TaskBar so that they only appear once?

    Claudia
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:35.
Find Us




Windows 10 Forums