15,076
edits
| (4 intermediate revisions by the same user not shown) | |||
| Line 8: | Line 8: | ||
== Command Prompt/Terminal ⇋ File Explorer (OS: {{Win}}) == | == Command Prompt/Terminal ⇋ File Explorer (OS: {{Win}}) == | ||
=== Open a Command Prompt/Terminal from the current File Explorer directory === | === Open a Command Prompt/Terminal from the current File Explorer directory === | ||
File Explorer directory | Open a Command Prompt/Terminal from the current File Explorer directory | ||
* {{Gd}} (1) Press {{kbd | key=alt}} + {{kbd | key=d}} to switch to the path bar of file explorer. (2) Enter {{kbd | key = cmd}} in the PATH bar and press {{kbd | key = ENTER}} key to open the console window. Tested on Windows 7, 8, 10.<ref>[http://lifehacker.com/5989434/quickly-open-a-command-prompt-from-the-windows-explorer-address-bar Quickly Open a Command Prompt from the Windows Explorer Address Bar].</ref><ref>[http://isvincent.pixnet.net/blog/post/38873133-windows-7%EF%BC%9A%E5%9C%A8%E5%91%BD%E4%BB%A4%E6%8F%90%E7%A4%BA%E5%AD%97%E5%85%83%E8%A6%96%E7%AA%97%E4%B8%AD%E5%BF%AB%E9%80%9F%E5%88%87%E6%8F%9B%E8%B7%AF%E5%BE%91 Windows 7:在命令提示字元視窗中快速切換路徑 @ 學不完.教不停.用不盡 :: 痞客邦 PIXNET ::]</ref> | * {{Gd}} (1) Press {{kbd | key=alt}} + {{kbd | key=d}} to switch to the path bar of file explorer. (2) Enter {{kbd | key = cmd}} in the PATH bar and press {{kbd | key = ENTER}} key to open the console window. Tested on Windows 7, 8, 10.<ref>[http://lifehacker.com/5989434/quickly-open-a-command-prompt-from-the-windows-explorer-address-bar Quickly Open a Command Prompt from the Windows Explorer Address Bar].</ref><ref>[http://isvincent.pixnet.net/blog/post/38873133-windows-7%EF%BC%9A%E5%9C%A8%E5%91%BD%E4%BB%A4%E6%8F%90%E7%A4%BA%E5%AD%97%E5%85%83%E8%A6%96%E7%AA%97%E4%B8%AD%E5%BF%AB%E9%80%9F%E5%88%87%E6%8F%9B%E8%B7%AF%E5%BE%91 Windows 7:在命令提示字元視窗中快速切換路徑 @ 學不完.教不停.用不盡 :: 痞客邦 PIXNET ::]</ref> | ||
| Line 15: | Line 15: | ||
* create the cmd.exe shortcut ( c:\windows\system32\cmd.exe ) and set the start location manually | * create the cmd.exe shortcut ( c:\windows\system32\cmd.exe ) and set the start location manually | ||
Total Commander | Open a Command Prompt/Terminal from the Total Commander directory | ||
* If you using the [[Total Commander]], enter {{kbd | key = cmd}} in the bottom PATH bar and press {{kbd | key = ENTER}} key to open the console window. | * If you using the [[Total Commander]], enter {{kbd | key = cmd}} in the bottom PATH bar and press {{kbd | key = ENTER}} key to open the console window. | ||
Windows PowerShell | Open a Windows PowerShell from ... | ||
* (left blank intentionally) | * (left blank intentionally) | ||
| Line 27: | Line 27: | ||
== Cygwin window ⇋ File Explorer (OS: {{Win}}) == | == Cygwin window ⇋ File Explorer (OS: {{Win}}) == | ||
=== Open a Cygwin window from the current File Explorer directory === | === Open a Cygwin window from the current File Explorer directory === | ||
[https://www.cygwin.com/ Cygwin] | Steps for [https://www.cygwin.com/ Cygwin] | ||
# Go to your "Send To" folder: {{kbd | key=<nowiki>C:\Users\<your_user_name>\AppData\Roaming\Microsoft\Windows\SendTo</nowiki>}} (howto: [https://www.howtogeek.com/howto/windows-vista/customize-the-windows-vista-send-to-menu/ Customize the Send To Menu in Windows 10, 8, 7, or Vista]) | |||
# Create a shortcut having this in the Target field: {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd \"$0\" ; exec bash"</nowiki>}}<ref>[https://stackoverflow.com/questions/9637601/open-cygwin-at-a-specific-folder windows - Open Cygwin at a specific folder - Stack Overflow]</ref> {{exclaim}} Known issue: If the folder name contains Chinese characters will met problem! | |||
=== Open a File Explorer from the current Cygwin directory === | === Open a File Explorer from the current Cygwin directory === | ||
| Line 49: | Line 50: | ||
* [[Total Commander]] | * [[Total Commander]] | ||
* sublime text 3: [https://superuser.com/questions/636057/how-to-set-shortcut-for-copy-file-path-in-sublime-text-3 How to set shortcut for `Copy file path` in sublime text 3 - Super User] | * sublime text 3: [https://superuser.com/questions/636057/how-to-set-shortcut-for-copy-file-path-in-sublime-text-3 How to set shortcut for `Copy file path` in sublime text 3 - Super User] | ||
* [https://notepad-plus-plus.org/zh/ Notepad++] --> Open the file --> Right mouse click on the label --> Copy the path | |||
* [https://www.emeditor.com/ EmEditor (Text Editor)] --> Open the file --> Right mouse click on the label --> Copy the path | |||
== Further reading == | == Further reading == | ||
| Line 58: | Line 61: | ||
<references /> | <references /> | ||
[[Category:Windows]] [[Category:Mac]] [[Category:Software]] [[Category:Programming]] | [[Category:Windows]] [[Category:Mac]] [[Category:Software]] [[Category:Programming]] [[Category:Cygwin]] | ||