Digital Workshop http://forum.digitalworkshop.co.uk/ |
|
Copy entire folder structure? http://forum.digitalworkshop.co.uk/viewtopic.php?f=29&t=4167 |
Page 1 of 1 |
Author: | llolslim [ August 1st, 2010, 9:43 am ] |
Post subject: | Copy entire folder structure? |
I'm currently using Creator 5.5 and I need to copy an entire folder structure, including all folders and files for example Code: this_folder -folder New Text Document.txt Image.jpg -folder2 Spreadsheet.xls So I need to copy everything inside "this_folder" including the folder structure - is this possible? I have tried using wildcard *.* but it doesn't work, I can't create a command to copy each individual file, as I won't know what they're all named (unlike my simplistic example!) and there are hundreds of files aswell which will change regularly! Many thanks |
Author: | Lar_123 [ August 1st, 2010, 9:01 pm ] |
Post subject: | Re: Copy entire folder structure? |
llolslim Is this something you are trying to do inside the Pub at runtime? I am not familiar with the Features of Creator 5.x. In short, I expect this is not something doable without adding a third-party utility program. Do you have OpusScript capability there? There have been previous posts here in the forum (under Opus/OpusPro) that give solutions to generating a directory list (of files in a folder). That may be a starting point, but would take some work to identify sub-folders and then repeat a listing for each of those. The listings may be used in OpusScript to copyfile individual files, one at a time --- but I doubt a folder can be copied the same way. So back 3rd-party tools? |
Author: | llolslim [ August 1st, 2010, 10:52 pm ] |
Post subject: | Re: Copy entire folder structure? |
Lar_123 wrote: llolslim Is this something you are trying to do inside the Pub at runtime? I am not familiar with the Features of Creator 5.x. In short, I expect this is not something doable without adding a third-party utility program. Do you have OpusScript capability there? There have been previous posts here in the forum (under Opus/OpusPro) that give solutions to generating a directory list (of files in a folder). That may be a starting point, but would take some work to identify sub-folders and then repeat a listing for each of those. The listings may be used in OpusScript to copyfile individual files, one at a time --- but I doubt a folder can be copied the same way. So back 3rd-party tools? yeah cheers for that, just confirming my thoughts It would be at runtime yes, it's a basic backup utility to allow someone to select a lcoation to backup files inside s specific folder, and copied to folder which is chosen by the end user. No OpusScript with Creator unfortunately - it was ashot in the dark really, I think i will use AutoIt instead as the capability is defintely available there. thanks |
Author: | Lar_123 [ August 2nd, 2010, 12:42 am ] |
Post subject: | Re: Copy entire folder structure? |
One last idea, search the forum for topics related to launchfile or command line. Basically with launchfile you can launch some .exe file and specify command line switches (parameters) with it. Of course, some of this gets into realm of UAC and Windows login privileges... admin etc. Just choose destination paths accordingly and do test it out as non-Admin User. |
Author: | llolslim [ August 2nd, 2010, 8:03 am ] |
Post subject: | Re: Copy entire folder structure? |
Lar_123 wrote: One last idea, search the forum for topics related to launchfile or command line. Basically with launchfile you can launch some .exe file and specify command line switches (parameters) with it. Of course, some of this gets into realm of UAC and Windows login privileges... admin etc. Just choose destination paths accordingly and do test it out as non-Admin User. nice Idea, I actually thought about something along the same lines - creating a batch file which I would then execte using the launch action, but I've actually finished the project now using AutoIt so no need!! Thanks for the suggestiosn though, glad to see Creator getting some more action than it did when I was using it daily a few years ago. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |