Jump to content
Macro Express Forums

Get File/path From Windows Explorer


DrGroove123

Recommended Posts

I'd like to write a series of Macros that operate on the highlighted file in a windows explorer menu.

 

Can anyone recommend an elegant way to get the full file path (drive\path\filename.ext) from a highlighted file in explorer?

 

I know I could copy the filename with F2.. then do Alt D to get the Path...

but is there somthing more elegant?

 

Some MacroExpress command like "Get Filename from window"?

Is there some sort of handle or hook into the explorer API?

 

thanks

 

Great Product, btw.

-Mark

Link to comment
Share on other sites

There might be a partial answer for you here:

http://www.logicalexpressions.com/vbtip03.htm

 

If you look at the registry entry for regsvr32.exe .... "%1", this shows where the highlighted filename would be passed to a program shown as an option resulting from a right click.

 

I'm guessing that "meproc.exe" could similarly be passed the filename for further processing by ME.

 

I don't yet know which command line options are appropriate. If you try this route please let me know.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...