新手问题:ROBOCOPY / MINAGE用于移动超过天数的文件 [英] newbie question: ROBOCOPY /MINAGE usage to move files older than number of days

查看:472
本文介绍了新手问题:ROBOCOPY / MINAGE用于移动超过天数的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将昨天之前创建的文件从现有存档文件夹(和子文件夹)移动到具有相同结构的单独存档文件夹,并每天保留日期时间。 例如,任何时候10/03/2015我在脚本下面运行,我想
将2015年10月1日及之前创建的文件从源档案文件夹移动到目标文件夹,相同的文件夹结构和日期时间完好无损。  下面是我在脚本中的第一个ROBOCOPY命令。


robocopy < source archives folders> < TargetArchivesFolder> / MIR / COPYALL / DCOPY:T / MOV / MINAGE:2


但是,它只移动了我运行脚本48小时之后的文件,而不是所有文件在昨天之前创建。从技术上来说,它做了所说的,但不是我想要的。 我怎样才能做到这一点?


欢呼


Michael J

解决方案

< blockquote>我认为你在错误的论坛。 这是一个管理脚本论坛。


I am trying to move files created before yesterday from existing archives folder(and subfolders) to a separate archive folders with same structure and preserve the datetime daily.  For example, anytime 10/03/2015 I run below script, I would like to move files created on 10/01/2015 and earlier from source archives folders to destination folders, with identical folder structure and datetime intact.  Below is my 1st ROBOCOPY command in script.

robocopy <source archives folders> <TargetArchivesFolder> /MIR /COPYALL /DCOPY:T /MOV /MINAGE:2

However, it only move the files older than 48 hours from the time I ran the script, rather than the all the files created before yesterday. Technically it did what was told, but not exactly I want.  How can I accomplish this?

Cheer

Michael J

解决方案

I think you are in the wrong forum.  This is an admin scripting forum.


这篇关于新手问题:ROBOCOPY / MINAGE用于移动超过天数的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆