Is it possible to copy the contents of a folder without having to physically click the folder to list the contents first
I have a big collection of files that are in separate names folders, and what I want to do is copy all the files from within each folder to one place so I can delete the named folders and have all the files now in one place instead of the file(s) in its own folder
EG :
The directories are called say
file 1
file 2
file 3
and each folder has one or multiple files in it. I want to be able to copy the contents of these folders, but don't want to have to enter each folder and copy the files within them by hand, as I am having to do at the moment
If I copy using the button on the toolbar it will simply copy the folder and its contents. Looking through the copy command options to create a button doesn't really make clear what command I am looking for to enter the folder and copy the contents only
Go into FlatView mode - from the View menu, Flatview -> Mixed (No Folders) should give you a list of all files in all folders. You can then copy them anywhere you like.
If you don't want to use Flat View then this button will copy the contents of the selected folder(s) into the destination (without copying the folders themselves):
Wait a minute Leo. I'm not understanding the code you typed in. To do what you claim it does...people would have to hard code the specified folder into the command before using it, right?
Like, I'd have to pre-enter the name of the folder I'd want copied into the command line of that button you just described...and then highlight the destination folder manually, and finally click the button to activate the copy from folder into the highlighted directory?
Nothing is hard-coded. {filepath$} inserts the path of the selected file.
If you don't think the button does what I claimed it does, why not just test it? (I tested it myself before posting it. If I ever post something that I haven't been able to test for some reason then I'll mention that in case it doesn't work.)
This is a very useful button! I'm wondering if it's possible to change it so that the content is copied to the selected folder in the destination lister and not the open folder in the destination. So basically, I select a folder in the source (all contents of it will be copied) and then select a folder in the destination (without actually having to open it) and have the contents copied to that selected folder in the destination lister.
Another button that Leo posted is able to copy selected files in the source to the selected folder in the destination:
dopusrt /cmd Copy MOVE TO {filepathdest$}
This button is able to copy to the selected folder in the destination, but not able to copy the contents of the selected folder in the source - only the actual files that you have selected. In a sense I would like to combine the function of these two buttons; I"ve tried rearranging and replacing lines of both button commands into one button but I always get an error. Any ideas how to get this to work?
In Opus 9.1.1.7, this command will do that but only works on the first selected folder. (You can click it multiple times to do several folders so it's fine for two or three but would be tedious to use for a lot of source folders):
@dirsonly
@nofilenamequoting
dopusrt /cmd Copy "{filepath$}\*" TO "{filepathdest$}"
Hopefully when there's a fix for the problem we found in the last couple of days you'll be able to remove the dopusrt /cmd part and it'll work for all source folders in one click. At the moment (9.1.1.7) if you remove it then the first folder is copied to the selected destination folder but then the contents of the rest of the folders end up in the destination directly.
Update: I spoke to Jon about this briefly and what I thought was the bug isn't really a bug, just how the {filepathdest$} code works... (Made sense once he explained it.) But there should be a way to assign {filepathdest$} to a variable with the @set command and then use that for multiple lines and right now that doesn't seem to work... Anyway, the upshot is that hopefully it will work in a future version but the command above may need to be changed slightly. I'll wait until that future version to avoid speculating further about how the command should look.
Thanks for the info - I tried out the button code you posted and it works well. Like you mentioned it would be more useful if you could selected multiple folders in the source but for now this will do! Thanks again