I have folder structure like c:\temp\logs\
main\log.zip
main\second\log.zip
main2\log2.zip
fmain3\third\forth\log33.zip
I want to move main\log.zip , main2\second\log2.zip to other location say at $dest= e:\back\logs
gci c:\temp\logs -directory -rec -filter '.zip' | ? {mv $_fullname $dest}
OR
gci c:\temp\logs -rec -filter '.zip' | ? {mv $_fullname $dest}
both the conditions the folder main folders + nested folders with zips are not as it moved to dest
also while rollback from $dest the all folders and files after zip is not going back as it is to source
what I can modify in gci condition
My question reframe like
I have a directory structure that looks like this:
C:\folderA\folderB\folderM\client1\f1.zips
C:\folderA\folderB\folderN\client1\f2.zips
C:\folderA\folderB\folderS\client2\f1.zips
I want to move the content of the client1,2,3 folders in C:\tmp\ to get this
from folder structure without disturb as it is move
C:\tmp\client1\f1.zips
C:\tmp\client2\f1.zips
C:\tmp\client3\f1.zips