November 15, 2016, 12:06pm
I have a collection with sub collections, for example
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.
Then I set this folder to flatview and copy to the destination. In the destination I should have all files without any folder.
So I have try this:
Copy "coll://MyCollection" To "C:\temp\allFiles\"
Copy FLATVIEWCOPY=single "C:\temp\allFiles\" To "C:\temp\destination\"
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.
What I make wrong?
November 15, 2016, 12:57pm
My first post missed some "*" (but still not working correct)
Copy "coll://MyCollection\*" To "C:\temp\allFiles\"
Copy FLATVIEWCOPY=single "C:\temp\allFiles\*" To "C:\temp\destination\"
I don't know if this will happen or not, but what happens when you leave the last line out of the script? (Try removing "Set FlatVIEW=off".)
November 16, 2016, 8:12am
Good idea... but not works
November 16, 2016, 10:33am
Remarkable is that also the option FLATVIEWCOPY=ask is ignored.
Maybe this is a bug in Dopus?
November 16, 2016, 11:46am
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.
November 16, 2016, 12:04pm
That it is! With "Select All" I have also try. But the copy command I have still specified the source and this was my mistake.
I think there is no better way because the collection I have generate manually.