admin wrote:Yes, I see good potential here. If you are happy with pasting the list of items then the interface could look like
Edit | New | New Folders.... The new command could be
Edit | Backup Here... (applying the settings from Configuration | Backup & Report).
Another way would be a (new or extended) scripting command (e.g.
backupto) that would take a TXT file (containing the list of items) as source. Or simply extending the existing source parameter like this;
Code: Select all
backupto location, [source]
source: if "file:*" the it points to a file containing a list of items, else it is the list itself
hmm... aren't you forgetting one little thing here: backupto is not a Rich Operation so all files would be in the same (destination) folder, whereas here joan28 is trying to preserve the folder structure obviously -- or were you planning to add "Rich Operation support" to backupto ?
Anyways, using a simple copy something similar can already be done somewhat easily. Select the text file containing a list of files to copy, and launch this script:
Code: Select all
copyto inputfolder(<curpath>, 'Select destination folder'), replace(readfile(), <crlf>, '|'), Computer;
It will ask for the destination folder, then copy all files while preserving the folder structure. So using the list posted above, and using E:\ as destination folder, the copied files should be as follow:
Code: Select all
E:\C\WINDOWS\Driver Cache\i386\msxpsinc.ppd
E:\C\WINDOWS\Driver Cache\i386\mxdwdui.ini
E:\C\WINDOWS\Resources\Themes\Luna.theme
E:\C\WINDOWS\Resources\Themes\Windows Classic.theme
Not exactly what was asked, but damn close

(Of course, I'm all for adding Rich Operation support to backupto!)
Note: in the script I used Computer as source for the Rich Copy, but that is for Win7. I think for older Windows one needs to replace it with "My Computer" in order to work.
BTW & slightly OT, is there/could there be some environment/XY variable or something one could use (in XY scripting as well as locations, e.g. destination of a Catalog item) so that it would always point to (My) Computer no matter how Windows calls it this time (I'm not even sure how it works in other language actually...) ?