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 to copy entire folder from one disk drive to another.

Status
Not open for further replies.

Dave2012k

Programmer
Aug 14, 2012
9
US
Hello friends!
I am developing a module to backup data from harddrive to an external device. This module let the user to select data from multiple directories. Like I explained in the subject line how do I copy entire folder from one disk drive to another with out specifiying what files to copy? Example copy c:\docdir to H:\docdir, where docdir may contain more then 100 different file types. FileCopy function doesn't copy a directory.
Thanks in Advance!
Dave
 
Thanks Matt for the help.
I get an error "illegal datatype Shfileoopstruct" when I try to declare Function long SHFileOperation(ref SHFILEOPSTRUCT lpFileOp ) Library "shell32.dll" Alias for "SHFileOperationA" in the global external functions. Please let me know why do I get this error.
Thanks,
Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top