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

前端 未结 4 2166
说谎
说谎 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:24

    Don't waste your time trying to re-invent robocopy in PowerShell.

    robocopy \\servername\location C:\Dumps /e /mov /minage:31
    

提交回复
热议问题