Jump to content

Recommended Posts

Posted (edited)

Ok, I give up. I've searched the forum and can't find a nice simple way to copy a folder's entire contents to another drive.

I am trying to copy the files and folder structure from my networked hard drive to my computer.

Thanks for any help!

Here is what I have;

DirCreate("C:\portableapps")

FileCopy("\\Linksys_disk\disk 1\Backup\portableAPPS\*.*", "C:\portableapps\")

but that only copies the files in that folder. How do I get all the other folders copied?

Thanks again!

Edited by Bobvark
  • Moderators
Posted

FileFindNextFile(), have you tried that in a loop? Look at the example in the helpfile. Also did you try DirCopy?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted (edited)

I've tried and given up trying the findfirst findnext thing. About the only programing I have is using QBasic. I've read both examples and do not understand the whole thing. Why can't I just use *.* that gives me an idea perhaps I could just call up the command line and use xxcopy. Would that be easier?

Edited by Bobvark
Posted

Hi,

Smoke_N is right, I think;

DirCopy from help file;

DirCopy

--------------------------------------------------------------------------------

Copies a directory and all sub-directories and files (Similar to xcopy).

DirCopy ( "source dir", "dest dir" [, flag])

Otherwise, you only need Xcopy probably unless you have special needs; look at links in my signature for

1.Doscoms and

2. recursive functions

of various sorts on directories.

best,Randall

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...