here's another try -
#singleinstance
#persistent
outpath:="::{20d04fe0-3aea-1069-a2d8-08002b30309d}"
return
$F11::
fileselectfolder, OUTPATH,*%OUTPATH%,3
Path_tmp:= outpath
loop, parse, clipboard,`n,`r
{
filegetattrib, myATTRIB, %A_loopfield%
ifnotinstring, myATTRIB, D
{
Stringgetpos,myPOS,a_loopfield,\,R
stringleft, mySTRING, a_loopfield, %MyPos%
}
else
MySTRING:=a_loopfield
if substr(mySTRING,2,1) = "`:"
stringtrimleft,mySTRING, mySTRING,3
loop, parse, mySTRING,\
{
filecreatedir,%path_tmp%\%a_loopfield%
Path_tmp.= "\" . a_loopfield
}
mySTRING:=
MyPOS:=0
PATH_tmp:=outpath
}
return
runs all the time, copy a folder (CTRL+C) and use the hotkey (F11) to duplicate the folder and it's associated path in the folder of your choice (you get a prompt to select the target dir when you use the hotkey
also works with files (the file name is stripped out of the path), and with multiple folder selections, ie selecting
C:\
| Documents and Settings:
| Administrator
| All Users
| Application Data
|
Desktop |
Documents | My Pictures
|
Favorites | Start Menu
| Default User
| User1
| User2
You'll end up with
D:
| temp
| Documents and Settings
| All Users
| Desktop
| Documents
| Favorites
the tray icon could also be removed to reduce the clutter