MS-DOS

Moderators: blip
Number of threads: 362
Number of posts: 872

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Help with for batch command Posted by leeveeu on 26 Aug 2010 at 5:12 AM
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:
cd\Work\_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:\Work\Backup\%DATE%
Report
Re: Help with for batch command Posted by bkv on 26 Aug 2010 at 6:17 AM
u can get the details here www.abstechindia.com



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.