PowerShell使用文件夹结构移动旧文件

时间:2018-07-30 11:03:25

标签: file powershell move

我正在使用PowerShell,需要将所有超过x天的旧文件移动到另一个文件夹,例如:

[RegularExpression("^(https?:\\/\\/)?(([\\w]+)?\\.?(\\w+\\.((za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw))))\\/?$", ErrorMessage = "Is not a valid fully-qualified URL.")]

但是问题是,当我添加“ AddDays(-$ daystoarchive)”时,文件夹结构不见了。

那我该如何实现呢?

0 个答案:

没有答案
相关问题