I have a collection with sub collections, for example
MyCollection
SubCollection1
SubCollection2
All files of this collection I want copy in the same target directory without folders. Because a collection has no flat view, I copy first the collection with files in folders in a temporary folder.
Copy "coll://MyCollection" To "C:\temp\allFiles\"
GO "C:\temp\allFiles\"
Set FLATVIEW=mixednofolders
Copy FLATVIEWCOPY=single "C:\temp\allFiles\" To "C:\temp\destination\"
Set FlatVIEW=off
But finally i have still all files in a folder. When I copy with Dopus (without internal commands) from "allfiles" to "destination" in flatview it works fine.
My first post missed some "*" (but still not working correct)
Copy "coll://MyCollection\*" To "C:\temp\allFiles\"
GO "C:\temp\allFiles\"
Set FLATVIEW=mixednofolders
Copy FLATVIEWCOPY=single "C:\temp\allFiles\*" To "C:\temp\destination\"
Set FlatVIEW=off
You may need to select everything while in flat view ("Select All") and then run the Copy command with just the destination folder specified, not the source. Otherwise, you're telling the copy command to copy a specific folder, and it will ignore the source lister, and its flat-view state.
Taking a step back, though: What is generating the collections in the first place? There might be a better way to do the whole thing.