Sign in to follow this  
Followers 0
Bobvark

copy folder and subfolder contents

4 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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


[center]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.[/center]

Share this post


Link to post
Share on other sites

#3 ·  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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0