hello
i want to write code for batch files xcopy all doc files from c: d: drives and subfolders to folder x on usb
and make the names of files short not the same of orginal files
what is the best code in this case
thank you
copy doc files
Moderator: DosItHelp
Re: copy doc files
Hello,
I would use the following
Perhaps there's a better more efficient way to do this, but I'm not familiar enough with all the copy options.
Lordoa
I would use the following
Code: Select all
set folderX=Y:\folderx
for /r "C:\" %i in (*.doc) do xcopy "%i" "%folderX%"
for /r "D:\" %i in (*.doc) do xcopy "%i" "%folderX%"
Lordoa