PowerShell script to move files and folders including subfolders from one location to another older than x days

前端 未结 4 2165
说谎
说谎 2021-02-13 02:10

I developed a PowerShell script, and it\'s working absolutely fine. The only challenge is the files in the subfolders are not getting moved to the destination.

g         


        
4条回答
  •  南方客
    南方客 (楼主)
    2021-02-13 02:46

    I needed a quick one liner to move all data off one drive onto another. This worked perfectly for me:

    Get-ChildItem "E:" -Recurse | Move-Item -Destination "G:"

提交回复
热议问题