How to search and copy results with file structure? -


i trying find way search directory files name, copy found files output directory. because files have same file name, i'm wondering if can copy folder structure well, or alternatively append filename parent folder name (i.e. folder\file.txt becomes folder-file.txt)

the search i'm using basic dir call:

dir file.xml /s 

can i'm trying cmd? ok using in batch script well, though believe syntax same.

i robocopy (built in newer versions of windows). should trick...

robocopy.exe /s c:\fromdir c:\todir file.xml 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -