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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -