I want to copy from the source lookup folder to the destination folder:
xcopy a:\parentfolder\n* x:\parentfolder
Therefore, folders starting with "n" must be copied to the destination.
Any help to get this job would be greatly appreciated.
for /f "delims=" %%a in ('dir /b/ad "a:\parentfolder\n*" ') do xcopy "a:\parentfolder\%%a\*" x:\parentfolder\
As you have it, XCOPY assumes it n*is a file specifier, and there is no way to say it differently.
n*
If you are the first CD in the folder you want to copy, it will work:
a: cd \parentfolder xcopy /s n*.* x:\parentfolder
Source: https://habr.com/ru/post/1537444/More articles:Dynamically add new attribute to existing JSON array in Node - jsonjava how to convert string to net.sf.json.JSONObject - javaChange the color of the pulsating blue ring around the user's location - iosWhere can I add NIB to the node.js + Expres + Jade + Stylus project created by WebStorm 8? - javascriptHow do I get XAML control to fill the available height? - Windows Store 8.1 - windows-store-appsWhat use adds a comma after its own argument in the class method? - pythonDataTemplate in HubSection does not reach full height - windows-8.1Placing vertex.label outside of a circular layout in igraph - rScroll vertically for HubSection content - windows-phoneCanonical way to load checksum in Dockerfile? - dockerAll Articles