windows - Xcopy certain file names only -
i've never used xcopy feature before , wondering if possible use xcopy copy files within directory tree.
for example, suppose have following documents: \servername\generateddocuments\2014\20141231\guid1.doc \servername\generateddocuments\2014\20141231\guid2.doc \servername\generateddocuments\2015\20150101\guid3.doc \servername\generateddocuments\2015\20150101\guid4.doc
now, suppose have spreadsheet tells me .doc files need copy: guid1.doc guid3.doc
is there way base xcopy on spreadsheet(or txt document) don't copy files don't need?
i don't think xcopy can read files include file. can create batch file this:
for /f "tokens=*" %%a in (documents.txt) ( copy %%a x:\targetfolder\ )
Comments
Post a Comment