You may use the free key-remapping product
AutoHotkey.
Here is a script that will start the Windows Terminal on the current folder
in Explorer when F12 is clicked.
#IfWinActive ahk_class CabinetWClass
~F12::
ControlGetText, _Path, toolbarwindow322, ahk_class CabinetWClass
StringReplace, _Path, _Path,% "Address: ",% ""
Run "wt.exe", %_Path%
After installing AutoHotKey, put the above text in a .ahk
file and double-click
it to test. You may stop the script by right-click on the green H icon in the
traybar and choosing Exit. To have it run on login, place it in the Startup group at
C:\Users\USER-NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
.
For choosing another hotkey than F12, see AutoHotkey
List of Keys.
You could also add this to the shell context menu by
this method:
- Start
regedit
and navigate to the key
HKEY_CLASSES_ROOT\Directory\Background\shell
- Right-click
shell
and select New > Key
, naming it perhaps
Windows Terminal
- Right-click the new
Windows Terminal
key and select again New > Key
,
naming it command
- In the new
command
key folder, double-click the (Default)
key
on the right and set it to the path to the executable file and hit OK.
You will probably not be able to set the command to
\path\wt.exe "%V"
, because Windows Terminal does not accept parameters,
so you will need to use a batch file, \path\script.bat "%V"
,
where the batch file will look like:
cd "%1"
start "" \path\wt.exe
wt.exe
and Enter, does it launch Windows Terminal inside the current folder?startingDirectory
is set to"."
, is there a shortcut for this? don't want to type in wt.exe. Perhaps any registry tweaks?