4301
General Software Discussion / Re: Help with search syntax on Win7 ...
« Last post by MilesAhead on June 21, 2012, 02:42 PM »I think you could do it in Explorer using the search. But you'd need to use a hack, like a drop target that chops off the filename part.
For example if you dropped a bunch of files like c:\temp\readme.txt c:\tmp\readme.txt onto the target, it should copy the folders c:\temp and c:\tmp.
It's a simple matter of getting the dir part of the path and using FolderCopy or CopyFolder, whatever it's called. The proviso is the code would have to check that a folder for copying is not already in the list. But that's not that difficult.
For example if you dropped a bunch of files like c:\temp\readme.txt c:\tmp\readme.txt onto the target, it should copy the folders c:\temp and c:\tmp.
It's a simple matter of getting the dir part of the path and using FolderCopy or CopyFolder, whatever it's called. The proviso is the code would have to check that a folder for copying is not already in the list. But that's not that difficult.

Recent Posts

