Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Help with for batch command

leeveeuleeveeu Member Posts: 1
Hi guys, I'm a MS-DOS batch newb, and I have a question for you.
I'm trying to copy several files from a location to another location using the for command. Below is the code, let me know please what I'm doing wrong. Thanks!

e:
cdWork_Projects
FOR /F %%i in ("*.doc;*.docx;*.xls;*.xlsx;*.png;*.gif;*.pdf;*.txt;*.jpg;*.psd;*.odt;*.mp3;*.ttf;*.pps;*.ppsx") DO xcopy e:Work_Projects%%i /S c:WorkBackup%DATE%

Comments

Sign In or Register to comment.