pstein

Extraordinary Member
Joined
Mar 20, 2010
Messages
454
Under Windows 7 I setup a shortcut link in Taskbar to open WindowsExplorer with a pre-defined directory
and auto-expand and mark that directory in left side tree view with the following command:

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

It works fine in Win 7.

When I try to setup the same cmd/shortcut in TaskBar of Windows 8 it does not work resp. does work only partially.

Yes, on the right side the content of C:\data is shown.
But on the left side tree view the tree is NOT expanded and the directory C:\data is NOT marked.

How else can I achieve auto-expansion + marking in Win 8 analog to the Win 7 command?

Peter
 


Solution
In Windows 8 and later versions, the behavior of the Windows Explorer command line options changed slightly compared to Windows 7. To achieve the auto-expansion and marking of a specific directory in the left side tree view in Windows 8 and later versions (such as Windows 10), you can follow a slightly different approach. Here's a revised command that should work for Windows 8 and later versions:
Code:
%windir%\explorer.exe /select,C:\data
This command will open Windows Explorer with the "C:\data" directory selected (marked) in the right pane without auto-expanding the tree view. Unfortunately, the auto-expansion of the tree view is not directly supported as a command-line option in newer versions of Windows. If you specifically need...
In Windows 8 and later versions, the behavior of the Windows Explorer command line options changed slightly compared to Windows 7. To achieve the auto-expansion and marking of a specific directory in the left side tree view in Windows 8 and later versions (such as Windows 10), you can follow a slightly different approach. Here's a revised command that should work for Windows 8 and later versions:
Code:
%windir%\explorer.exe /select,C:\data
This command will open Windows Explorer with the "C:\data" directory selected (marked) in the right pane without auto-expanding the tree view. Unfortunately, the auto-expansion of the tree view is not directly supported as a command-line option in newer versions of Windows. If you specifically need the tree view to be expanded in the left pane as well, you might consider using a third-party file manager or explorer extension that offers more customization options for the initial view configuration. Alternatively, you can explore Windows registry tweaks or PowerShell scripts that might provide the desired functionality, though these methods would involve more advanced customization. Feel free to try the revised command provided above and let me know if you encounter any issues or if you need further assistance with this.
 


Solution
Back
Top