Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:41 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Copy entire folder structure?
PostPosted: August 1st, 2010, 9:43 am 
Offline

Joined: June 14th, 2005, 3:24 pm
Posts: 56
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


For this message llolslim has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Copy entire folder structure?
PostPosted: August 1st, 2010, 9:01 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
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?

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Copy entire folder structure?
PostPosted: August 1st, 2010, 10:52 pm 
Offline

Joined: June 14th, 2005, 3:24 pm
Posts: 56
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 :roll:
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


For this message llolslim has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Copy entire folder structure?
PostPosted: August 2nd, 2010, 12:42 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
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.

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Copy entire folder structure?
PostPosted: August 2nd, 2010, 8:03 am 
Offline

Joined: June 14th, 2005, 3:24 pm
Posts: 56
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.


For this message llolslim has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group