Powerpro gurus:

Is there a way to copy the path of the selected file in an explorer 
window to the clipboard without using the explorer context menu?

This is what I am trying to do:

>From an open e-mail message, copy the file attachment to a folder 
(obtained from a user prompt) and save the path to the saved file, 
including the full folder path, in the e-mail message.  

For example, if an e-mail contains the attachment readthis.doc, I 
want to prompt the user for a folder to save the attachment in. (This 
is really not a prompt but another menu consisting of recent folders, 
fav folders, folder browser, etc. but this is not relevant). Assuming 
the user selected "C:\My Documents\Readlater", I want to save this 
attachment in C:\My Documents\Readlater\ and copy the path "C:\My 
Documents\Readlater\readthis.doc" to clipboard so that it can be 
pasted in the e-mail.  The main problem is that the script does not 
know the name of the file and has to figure it out.

I actually got this working, using an awkward combination of awkward 
scripts and awkward command lists, but it sometimes fails due to 
complex waits, etc.  Basically, I created, for just this purpose, an 
explorer context menu item (with a &letter mnemonic) that copies the 
filepath to the clipboard and used Exec contextmenu to select this 
item in a script.

Awkward, isn't it?  Is there a better way?





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to