Copy empty folders from source to dest

I want to select a list of folders in the source pane and copy only the folders to the dest without copying the contents (eg. iteratively do a createfolder operation in the dest on all selected folders in the source.

I can get the folder names using Clipboard COPYNAMES=nopaths which puts a CRLF separated list of folder names on the clipboard but don't know where to go from there. If I can convert the clipboard contents into a comma separated list (e.g replace the CRLF's with commas) then CreateFolder FROMCLIPBOARD will do the trick... don't have a clue how to do this intermediate step.

Anyone???

tia
maynard

You'll want to use a filter that is set to include ONLY folders... give a hout if you need more specifics on how to set it up... but give it a shot first :wink:.

I have something here.
This may not be quite what you're looking for,
but I have a button that may be a step in the right direction.
This code Creates the Source Directory Structure in the Dest, but does NOT copy files.

@runmode hide xcopy /T /E /I {sourcepath$|noterm} {destpath}

This recursively recreates the Source Dir structure to the Dest.
The resultant Dest Dir structure contains none of the files in the Source Dir structure.

More may be possible here though.
Here is a link to one of many sources on the xcopy command syntax.
I'll think on it !

Regards,
Dave

Edit Note: I think Steje has the right idea here, but I can't remember ever using a filter recursively.
Steje, I'll try it and report back ! :smiley:

You just need to create a filter that is set for Type/Match/[Folders Only] and then use that filter when performing the copy operation...

Works perfectly steje. Thanks.