Her, Thats correct I only want to get the files from the folder number.
I will try the code you have send.
Tried it. None of the files where copied? :(
@echo off
GCI C:\_ -Include *.docx, *.xls, *.pdf -Recurse | ? { $_.PSParentPath -like "*\numbers" } | Copy-Item -Destination E:\numbers
pause
I Hope some one can help me out with this problem.
I want to copy files from a sub sub folder and all the files in that specific folder needs to be copied to one folder.
Like this
driveletter: \FolderA\year\number\ files
What the problem is with this copy is the FolderA and Year (multiple...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.