saving multiple files through xcopy in a batch file

Posted by sushant on Stack Overflow See other posts from Stack Overflow or by sushant
Published on 2010-04-12T05:40:47Z Indexed on 2010/04/12 5:43 UTC
Read the original article Hit count: 351

Filed under:

for %f in (D:\flexcube1,D:\flexcube2,D:\flexcube3) do xcopy %f D:\o\ /e
when i use the following code in command prompt, it works fine. but when i use the same code in a batch file, nothing happens. my batch file simply consists of:
for %f in (D:\flexcube1,D:\flexcube2,D:\flexcube3) do xcopy %f D:\o\ /e
but it does not work. i dont understand it and i have to use a batch file to copy multiple files. any help is really appreciated

© Stack Overflow or respective owner

Related posts about batch-file