-1

I would like to search all word files in .doc and .docx extensions from C and D drives then copy then to F drive the script which i want have to use xcopy command any suggestions

iamnamrud
  • 39
  • 7
  • or you can also use vbs if u can – iamnamrud Jan 25 '14 at 10:33
  • Please consult the help section about what kind of questions are accepted and appropriate to ask on this website and what you can do to improve your question: http://stackoverflow.com/help – hakre Jan 25 '14 at 12:02

1 Answers1

0

*.doc will match *.doc and *.docx

xcopy "c:\*.doc" "f:\target folder\c\" /s
xcopy "d:\*.doc" "f:\target folder\d\" /s
foxidrive
  • 40,353
  • 10
  • 53
  • 68