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 » Fri Feb 17, 2012 3:49 pm

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: 2720
Joined: Thu Sep 03, 2009 6:48 pm

Re: Extract selected filename and path

Post by therube » Fri Feb 17, 2012 5:39 pm

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: 2720
Joined: Thu Sep 03, 2009 6:48 pm

Re: Extract selected filename and path

Post by therube » Fri Feb 17, 2012 5:42 pm

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 » Sat Feb 18, 2012 5:02 pm

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