Bobvark Posted December 26, 2005 Share Posted December 26, 2005 (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 December 26, 2005 by Bobvark Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 26, 2005 Moderators Share Posted December 26, 2005 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. Link to comment Share on other sites More sharing options...
Bobvark Posted December 26, 2005 Author Share Posted December 26, 2005 (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 December 26, 2005 by Bobvark Link to comment Share on other sites More sharing options...
randallc Posted December 27, 2005 Share Posted December 27, 2005 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 ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now