You can map a key to open the folder of the current file this way:
Go to Preferences > Tools
Select Add > Program
Type in the following, and press 'OK':
C:\windows\explorer.exe
Click on the new tool, to rename it to something a bit more descriptive, such as 'open-containing-folder'.
Press 'Apply'
The tool is now present in the left tree-menu. Select it.
In the field 'Parameters' put $FileDir
All checkboxes should be unchecked.
Press OK.
I have this tool mapped to F3
Open containing folder
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2
- Joined: Thu Jun 18, 2009 4:35 pm
Re: Open containing folder
I should have thought of that a very long time ago: what a great tip, THANK YOU!!! Let me return the favor. This little bit of code has saved me 1,000's of key stokes over the years...
1. Write up something like the 6 lines of VB6 code below. Then, compile it to CopyPath2Clipboard.exe into any dir Windows can "auto find" it (hint, any dir that is in the env path stmt such as c:\windows\system32 etc...)
Private Sub Main()
Dim clipboardText$
Clipboard.Clear
clipboardText$ = Trim$(Command())
Clipboard.SetText clipboardText$
End Sub
2. Save the following registry entries into a .reg file, save as ANSI. Then double click on that reg file to merge it:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
@=""
[HKEY_CLASSES_ROOT\*\shell\Steves Copy Path]
@="Copy Path"
[HKEY_CLASSES_ROOT\*\shell\Steves Copy Path\command]
@="CopyPath2Clipboard.exe %1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Steves Copy Path]
@="Copy Path"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Steves Copy Path\command]
@="CopyPath2Clipboard.exe %1"
3.1 Enjoy your new Explorer context menu "Copy Path" (Hint, when "Copy Path" is clicked, the file or dir full path is placed into the clipboard).
3.2 Also, enjoy this Program on the Textpad Tools menu in the same manner as your tip. Whenever you need a path in the clipboard (40+ times a day for me), this little trick saves ALLOT of keystrokes.
1. Write up something like the 6 lines of VB6 code below. Then, compile it to CopyPath2Clipboard.exe into any dir Windows can "auto find" it (hint, any dir that is in the env path stmt such as c:\windows\system32 etc...)
Private Sub Main()
Dim clipboardText$
Clipboard.Clear
clipboardText$ = Trim$(Command())
Clipboard.SetText clipboardText$
End Sub
2. Save the following registry entries into a .reg file, save as ANSI. Then double click on that reg file to merge it:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell]
@=""
[HKEY_CLASSES_ROOT\*\shell\Steves Copy Path]
@="Copy Path"
[HKEY_CLASSES_ROOT\*\shell\Steves Copy Path\command]
@="CopyPath2Clipboard.exe %1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Steves Copy Path]
@="Copy Path"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\Steves Copy Path\command]
@="CopyPath2Clipboard.exe %1"
3.1 Enjoy your new Explorer context menu "Copy Path" (Hint, when "Copy Path" is clicked, the file or dir full path is placed into the clipboard).
3.2 Also, enjoy this Program on the Textpad Tools menu in the same manner as your tip. Whenever you need a path in the clipboard (40+ times a day for me), this little trick saves ALLOT of keystrokes.
troels_kn wrote:You can map a key to open the folder of the current file this way: ....Type in the following, and press 'OK':
C:\windows\explorer.exe
I have this tool mapped to F3