How to open the Windows Terminal (Preview) in File Explorer

Solution 1:

Simply type in wt in the address bar and it will open the command prompt with the path to your current folder already set. Make sure that your settings do not overwrite startingDirectory.

enter image description here

Solution 2:

You can try this command in the folder path:

wt -d .

source

EDIT: Microsoft mentions the previous command in one of their videos alongside with many interesting features of Windows Terminal 1.0

Solution 3:

To fix this:

  • Open Windows Terminal
  • Click the down arrow in the toolbar to get the menu and select "Settings"
  • Update your profiles.json defaults so that all shells starting directory is the current directory

    "profiles": {
        "defaults": {
           // Put settings here that you want to apply to all profiles
           "startingDirectory": "."
        }...
    

From at least v0.9.433.0 on Windows 10 onwards the default value for "startingDirectory" in defaults.json on my machine is "%USERPROFILE%", which means typing "wt" in an explorer window opens in your home directory, not the current folder.

Solution 4:

For quite some time, there is a PowerShell module called OpenHere that gives you granular options to control this functionality.

All you need is to copy paste this into PowerShell with elevated rights:

Install-Module -Name OpenHere; Import-Module -Name OpenHere

and start to explore the Set-OpenHereShortcut function.

Disclosure:

I'm a developer of this module.