Jump to content

Open command window here

From LemonWiki共筆
(Redirected from CmdHere)

Quick to open the command prompt/terminal window.

Explanation of symbols[edit]

Command Prompt/Terminal ⇋ File Explorer (OS: Win )[edit]

Open a Command Prompt/Terminal from the current File Explorer directory[edit]

Open a Command Prompt/Terminal from the current File Explorer directory

  • cmdhere powertoy for windows xp
  • create the cmd.exe shortcut ( c:\windows\system32\cmd.exe ) and set the start location manually

Open a Command Prompt/Terminal from the Total Commander directory

  • If you using the Total Commander, enter cmd in the bottom PATH bar and press ENTER key to open the console window.

Open a Windows PowerShell from ...

  • (left blank intentionally)

Open a File Explorer from the current Command Prompt/Terminal directory[edit]

Cygwin window ⇋ File Explorer (OS: Win )[edit]

Open a Cygwin window from the current File Explorer directory[edit]

Steps for Cygwin

  1. Go to your "Send To" folder: C:\Users\<your_user_name>\AppData\Roaming\Microsoft\Windows\SendTo (howto: Customize the Send To Menu in Windows 10, 8, 7, or Vista)
  2. Create a shortcut having this in the Target field: C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd \"$0\" ; exec bash"<ref>windows - Open Cygwin at a specific folder - Stack Overflow</ref> Icon_exclaim.gif Known issue: If the folder name contains Chinese characters will met problem!

Open a File Explorer from the current Cygwin directory[edit]

  • Keyin explorer "$(cygpath -w .)" on the Cygwin command, it will open the current folder in the file explorer<ref>cygpath</ref>
  • Keyin explorer "$(cygpath -w ~)" on the Cygwin command, it will open the Cygwin user home folder e.g. C:\cygwin64\home\User in the file explorer <ref>windows - Open Cygwin at a specific folder - Stack Overflow</ref>

Terminal window ⇋ Finder (OS: macOS icon_os_mac.png )[edit]

Open a Command Terminal from the current Finder directory[edit]

Open a Finder from the current Command Terminal directory[edit]

  • Keyin open . on the terminal prompt, it will open the current folder in the finder
  • Keyin open .. on the terminal prompt, it will open the upper folder in the finder

Copy current path to clipboard[edit]

Using tools

Further reading[edit]

References[edit]

<references />