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

c# - HttpResponseMessage System.InvalidOperationException -

sql - Postgresql error: "failed to find conversion function from unknown to text" -