Open a specified path in Explorer using PowerShell

Method

  1. Open Explorer.
  2. Type the following in the address bar and press enter.
    Example)
    powershell ii C:\Users\miajimyu\Desktop\dir1
    or
    powershell ii C:/Users/miajimyu/Desktop/dir1

Video

reveal-in-explorer

Description

Even if the path is written with a backslash,
you can open the specified path by combining the following two elements.

  • PowerShell does not distinguish between slashes and backslashes.
  • Invoke-Item commandlet can be used to open the specified path in Explorer, or to open a txt file, etc. in Notepad. The alias for Invoke-Item is ii.
Last modified October 11, 2022: update (8216439)