Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open containing folder

 
Post new topic   Reply to topic    Community Forum Index -> Tips
View previous topic :: View next topic  
Author Message
troels_kn



Joined: 28 Oct 2005
Posts: 32

PostPosted: Sun May 20, 2007 7:10 pm    Post subject: Open containing folder Reply with quote

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
Back to top
View user's profile Send private message
MudGuard



Joined: 02 Mar 2003
Posts: 1254
Location: Munich, Germany

PostPosted: Sun May 20, 2007 7:26 pm    Post subject: Reply with quote

Which advantages does your tool have compared to the existing
Tools -> Windows Explorer
?
Back to top
View user's profile Send private message Visit poster's website
troels_kn



Joined: 28 Oct 2005
Posts: 32

PostPosted: Sun May 20, 2007 8:33 pm    Post subject: Reply with quote

MudGuard wrote:
Which advantages does your tool have compared to the existing
Tools -> Windows Explorer
?

Weird. Has that menu option always been there?
Back to top
View user's profile Send private message
MudGuard



Joined: 02 Mar 2003
Posts: 1254
Location: Munich, Germany

PostPosted: Sun May 20, 2007 9:33 pm    Post subject: Reply with quote

For some years at least ...
Back to top
View user's profile Send private message Visit poster's website
ssmith22x0



Joined: 18 Jun 2009
Posts: 2

PostPosted: Thu Jun 18, 2009 6:57 pm    Post subject: Re: Open containing folder Reply with quote

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.





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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> Tips All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB