Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I copy a full directory

Status
Not open for further replies.

serarmoro

Programmer
Dec 18, 2002
16
MX
Hi guys I need to copy a full directory in a monthly basis, right now that's being handled manually but I need to make it happen with a command from the user.
I've searched for a method to copy a directory but there's only a method to copy one file at a time.
I also checked on the threads to see if there was one before, but couldn't find one... I'll appreciate any advise.

Thank you
 
Serarmoro,

You may be interested in which shows how to use the existing FileSystem methods to recursively search a directory and any child directories for files.

The code is fairly skeletal and contains a SWITCH statement where you'll probably want to put the code to copy the individual file.

Also, there's a sample script available, so you don't have to type in the code yourself.

Hope this helps...

-- Lance
 
Lance:

Thank you very much I've found the code in another thread posted sometime ago and I was working on it. But the link you gave me is better than the solution I was looking for... (wich I already got) If you know any other links like that I'll appreciate the tip.

Thank You

Serarmoro
 
Lance:

Thank you very much for the information so far I was in a kind of emptyness regarding Paradox information other than my 4.0, 4.5 and 9 version documentation. I coudn't understand why such a powerful program had so little info and support.
As you wrote it I tried before the Corel KnowledgeBase only to feel frustrated. This was the only truly helpful site I've found up to yesterday.
Can't tell you how happy I am right now... have a lot to read.
Again Thank you.


Serarmoro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top