Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,everyone.I'm writing an application.but can to copy all word files(*.doc) in D disk to E disk?
Maybe we find all the word files(*.doc) in all the directories in D first?Then copy files?
Could someone help me and show your code in MFC?
Thanks in advance.
Posted

1 solution

There's a nice example on msdn how to find all files:
http://msdn.microsoft.com/en-us/library/scx99850%28VS.80%29.aspx[^]

I'm sure you can find out how to copy the files to any desired destination.

Good luck!
 
Share this answer
 
Comments
eagle_chen 2-Dec-10 0:03am    
I just want to copy document files(*.doc),not all kinds of file.Thanks all the same.
E.F. Nijboer 2-Dec-10 7:27am    
...and you didn't figure out that you could simply change this "strWildcard += _T("\\*.*");" into "strWildcard += _T("\\*.doc");" to achieve that? ;-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900