Help with for batch command

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!

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%


Sign In or Register to comment.

Howdy, Stranger!

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


In this Discussion