Provide option to add terminal in explorer #18686

Closed
opened 2026-01-31 06:21:19 +00:00 by claunia · 5 comments
Owner

Originally created by @twoco on GitHub (Oct 14, 2022).

It would be great if I can just right click on a folder (its background) and choose "Open in Terminal". Which simply opens the Windows Terminal with the path. Keep it simple. Just one context menu entry with the icon and text. No complex menu or additional options. I could add my own shell entry in regedit. But this should not the solution. The idea is to provide this option in the Terminal settings (add and remove; maybe just in user scope which requires no admin). Another problem is that the new Windows Terminal folder path (apps) has a dynamic folder (path) name. The app version is included. This makes it hard to add a custom shell entry. Even when using just the "wt" command instead of the path. I get an error (0x80070005). Anyway, it would be great if you provide an official solution.

Originally created by @twoco on GitHub (Oct 14, 2022). It would be great if I can just right click on a folder (its background) and choose "Open in Terminal". Which simply opens the Windows Terminal with the path. Keep it simple. Just one context menu entry with the icon and text. No complex menu or additional options. I could add my own shell entry in regedit. But this should not the solution. The idea is to provide this option in the Terminal settings (add and remove; maybe just in user scope which requires no admin). Another problem is that the new Windows Terminal folder path (apps) has a dynamic folder (path) name. The app version is included. This makes it hard to add a custom shell entry. Even when using just the "wt" command instead of the path. I get an error (0x80070005). Anyway, it would be great if you provide an official solution.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 06:21:19 +00:00
Author
Owner

@twoco commented on GitHub (Oct 14, 2022):

Workaround: My current reg file:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\psterminal]
@="Terminal"
"icon"="C:\\Windows\\System32\\cmd.exe"

[HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\psterminal\command]
@="wt -d ."

Icon is still set to cmd because the path to this Windows Terminal contains the version in name like:

C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.15.2712.0_x64__ect

Not sure if there is a solution like proxy or just another way to get the icon from wt app. Alternative solution: Just extract the icon, place it on a fixed path and set it as icon path.

@twoco commented on GitHub (Oct 14, 2022): Workaround: My current reg file: ```reg Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\psterminal] @="Terminal" "icon"="C:\\Windows\\System32\\cmd.exe" [HKEY_CURRENT_USER\Software\Classes\Directory\Background\shell\psterminal\command] @="wt -d ." ``` Icon is still set to cmd because the path to this Windows Terminal contains the version in name like: `C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.15.2712.0_x64__ect` Not sure if there is a solution like proxy or just another way to get the icon from `wt` app. Alternative solution: Just extract the icon, place it on a fixed path and set it as icon path.
Author
Owner

@DHowett commented on GitHub (Oct 14, 2022):

This should work today; we offer a right-click option on all folders, selected items that are folders, and the desktop background.

I suspect you're seeing an issue where it's just not working properly?

What version of Windows are you running? What other shell extensions do you have installed?

(I'm gonna move this discussion over to /dup #14185)

@DHowett commented on GitHub (Oct 14, 2022): This should work today; we offer a right-click option on all folders, selected items that _are_ folders, and the desktop background. I suspect you're seeing an issue where it's just not working properly? What version of Windows are you running? What other shell extensions do you have installed? (I'm gonna move this discussion over to /dup #14185)
Author
Owner

@ghost commented on GitHub (Oct 14, 2022):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Oct 14, 2022): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@twoco commented on GitHub (Oct 14, 2022):

Ok, it seems that the explorer needs to be restarted (e.g. by killing process in task manager and run again or just reboot PC). I had weird behavior. Two instances of explorer was in task manager. In some paths it worked in other not. Anyway, sorry. A PC reboot (explorer restart) is the solution for everything. The IT Crowd didn't lie. ^^

@twoco commented on GitHub (Oct 14, 2022): Ok, it seems that the explorer needs to be restarted (e.g. by killing process in task manager and run again or just reboot PC). I had weird behavior. Two instances of explorer was in task manager. In some paths it worked in other not. Anyway, sorry. A PC reboot (explorer restart) is the solution for everything. The IT Crowd didn't lie. ^^
Author
Owner

@DHowett commented on GitHub (Oct 14, 2022):

Ha! Glad it helped!

@DHowett commented on GitHub (Oct 14, 2022): Ha! Glad it helped!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18686