Extract selected filename and path

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
WyleySam
Posts: 20
Joined: Wed Dec 28, 2011 2:06 pm

Extract selected filename and path

Post by WyleySam »

Is there a way to set a variable to the currently selected file name or path??? I would like to use a macro pass the program IrfanView the file name.
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Extract selected filename and path

Post by therube »

I don't know about a variable?

But if IrfanView can read the clipboard ...?

Code: Select all

Options | Keyboard
-> ResultList.CopyPath
-> ResultList.CopyFullPathAndName
I have the former set to F5 & the latter to F6.
The path or filename gets copied to the Windows Clipboard.
Then I a shortcutkey key in my file manager (Altap Salamander), Shift+INS to jump to that specific path or file.
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Extract selected filename and path

Post by therube »

You could always right+click, Send To -> IrfanView (assuming you've set IrfanView up as a "send to").

If the particular file types are registered to IrfanView, all you need do is double-click the file.
WyleySam
Posts: 20
Joined: Wed Dec 28, 2011 2:06 pm

Re: Extract selected filename and path

Post by WyleySam »

Thank you for your fast response.

I was able to use the macro program (AutoHotKeys: http://www.autohotkey.com/ ) to send the required keys, access the clipboard text, and run IrfanView
Post Reply