I have the following batch file that I would like to modify too copy the files that it lists in the Allfiles.txt file to the U:\. Can anyone assist with the proper syntax.
c:
dir c:\*.doc, *.xls, *.ppt, *.pab, *.pst, *.mab, *.rtf, *.pdf, *.mdb /s /b>c:\Cdrive.txt
d:
dir d:\*.doc, *.xls, *.ppt, *.pab, *.pst, *.mab, *.rtf, *.pdf, *.mdb /s /b>c:\Ddrive.txt
e:
dir e:\*.doc, *.xls, *.ppt, *.pab, *.pst, *.mab, *.rtf, *.pdf, *.mdb /s /b>c:\Edrive.txt
c:
type cdrive.txt>allfiles.txt
type ddrive.txt>>allfiles.txt
type edrive.txt>>allfiles.txt
u:
md MyDocs_oldPC
cd MyDocs_oldPC
md %username%
cd %username%
md favorites
md personal
md desktop
c:
cd\
cd winnt\profiles\%username%
xcopy /s favorites u:\mydocs_oldpc\%username%\favorites
del /Q /s favorites