Author
Topic: Get Filepath (Read 11138 times)

this is a small program written in AHK to get the file-path of the file parsed at command-line. the story behind this: whenever i'm viewing a document/image, sometimes i'd need the file-name or path. and for that purpose, this can be used where you can assign this program as an "external tool" and use the hot-key/menu to access this item. if it was a legitimate file then a tooltip will appear saying file-path is copied. if there is any improvements that can be made, feel free to download the source and modify.

IrfanView as an example

Edit1: added a small usage demo. btw, the tray-tip couldn't be captured, so i'm pointing at nothing in the tray area (where the icon briefly appears).

Nice work Lanux be sure to add a shorcut to GetFilePath.exe to your SendTo folder (start -> run -> sendto OR start -> shell:sendto) for it to be availalble in nearly any application. For some reason the traytip is not showing for me on vista (but there's no fault in your code so I assume a restart will fix that for me)I was adding in automatic drive mapping for UNC but got stuck and had to give up. It's easy to detect if the first two characters are \\ and you can run the command "net use * %filepath%" to map to a available drive. However I'm not sure how to retrieve the output of net use, take the 2nd word from the 1st line (which is the drive letter) to form the new filepath string.

Edit: Success! added UNC mapping., the folder in which the file resides is automatically mapped to a driveletter.

you're welcome, Armando. i too sometimes use Farr get file-paths but this tool is useful when the image/document is already open and the Windows context-menu is not available. btw, i've added a small demo on the usage since i sure it will be more clearer that way.