Can Robocopy Be Used To Copy Folders Newer Than A Certain Date?

We've been using robocopy with the /MAXAGE option to copy files newer than a certain date. Can the same be done for folders?
Orange County District Attorney

Hi,
We cannot use robocopy to folders newer than a certain date, the /MAXAGE option is only used to copy files. We could use PowerShell command to copy folders newer than X days.
Get-ChildItem <source folder> -Recurse | where {$_.PSIsContainer -eq "ture" -and $_.LastWriteTime -gt ($(Get-Date).Adddays(-X))} | foreach {copy $_.FullName <detination folder> }
Best Regards,
Mandy
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

Similar Messages

  • Can I continue using Carbon Copy Cloner after upgrading to Snow Leopard?

    Hi the last time that I backed up my Mac Pro to my external hard drive using Carbon Copy was when I was on Leopard. I recently upgraded to Snow Leopard, can I continue using Carbon Copy Cloner on Snow Leopard or do i have to format the external Drive? Thanks

    For compatibility make sure you have the latest version (3.3)
    http://forums.bombich.com/viewtopic.php?t=14836

  • HT1539 Can you download the digital copy to more than one iTunes account?

    Can you download the digital copy to more than one iTunes account?

    No. The redemption codes are one-time use only.
    tt2

  • Why can't I use Roboform with the new version?

    You keep asking me to upgrade to the new firefox, but it does not use Roboform. Why can't I use roboform? Without Roboform, I can't use Firefox!

    Firefox says to update to 6.0 but roboform will not work. Should I update to firefox 6.0 or not?

  • Can i still use older iPhone if newer iphone is being repaired

    can i still use older iPhone 4S if newer iPhone 6 is being repaired

    Yes; if you transferred your service to the iPhone 6, you may need to contact your carrier.
    (124806)

  • How can I find out if iPhoto was opened on a certain date?

    Is it possible to access some kind of activity log to see if iPhoto was opened on a certain date?

    Hello, I doubt it, but you can likely tell the last time it was used, (likely no use now), by checking the modification date of...
    /Users/YourUserName/Library/Preferences/com.apple.iPhoto.plist

  • Used GPedit, copied folders to another PC, applied, can't edit now with gpedit?

    Make sure you are running it with elevated permissions (i.e. right-click, run as 'administrator')...have you tried that?

    Hello all, I have 5 pcs I am setting up for the manufacturing shop floor and I setup a local group policy to restrict running any applications except for the listed few. Once I set it up on the first PC, I copied the folders over to the other PC's and gpupdate /force applied them, but now I can't seem to edit them. Is there another tool aside from gpedit that I need to use? I can see a policy applied in rsop.msc, but I dont see a way to edit what the policy even is, just that there is a software restriction policy in place.
    Thanks!
    This topic first appeared in the Spiceworks Community

  • HT4527 Can't play songs after copying to new PC

    I've followed the instructions to copy iTunes from an old PC to a new one, but still get the message on the new PC that iTunes cannot locate the songs when i try to play them.  Can anyone help?  Please?

    Given that Photoshop is a copy-protected application, it's not terribly surprising it won't work after a copy like that.  I'm guessing you may have to uninstall and reinstall (possibly using the Creative Suite removal tool), then reactivate.  Successful activation may require your calling customer support.
    -Noel

  • Can I upgrade 10.6.8 to Mountain Lion 10.8 on my 3 year old MacBook? If not, can I not use iCloud for my new iPhone?, Can I upgrade 10.6.8 to Mountain Lion 10.8 on my 3 year old MacBook? If not, can I not use iCloud for my new iPhone?

    Can I update 10.6.8 to 10.8 so I can sync my macbook with my new iphone?

    Mountain Lion has high requirements:
    Lion also supports iCloud.  Lion only needs Core2Duo and 2 GB RAM (though 4+ GB is better).
    You can get Lion by calling 1-800-MY-APPLE and paying $19 for a download code to use in App Store.

  • Can I still use cs3 on a new SSD in the same Mac?

    Hello, I just got a new ssd for my snow leopard macbook and would like to copy After Effects CS3 from the original HD to SSD if possible.
    When I tried to just put After Effects in the SSD application folder and launch it, I got an error "licensing for this product has stopped working. You must repair the problem by uninstalling and reinstalling it. Or contact IT administrator or adobe customer support."
    What am I supposed to do?
    I don't have the install disc. I don't even remember if I got this application from online or a disc...
    Please advise, thank you.

    I recommend you to give the definitive size you think you will need to both partitions.
    An example: you have created the second volume, and you have also the first volume. If you want to resize the first volume and reduce its size to add the space to the second partition, you will have problems because Disk Utility won't allow you to add it. That's why you should give to each volume the definitive size

  • Why can I not use LR4 with my new camera raw format?

    My new camera raw format is unrecognizable with LR4. Anyway around this?

    Yes use the Adobe DNG converter to convert the proprietary raw files to DNG raw files. Then LR4 will be able to read them.
    The Adobe converter is free.

  • Why can't I use powerteacher on my new ipad mini?

    I just recieved an ipad mini to use in my classroom and I can't log into my powerteacher app. I was so looking forward to using this in my classroom as a very helpful tool. Am I doing something wrong?

    Iteach
    Here is a discussion on Powerteacher..
    http://www.pearsonschoolsystems.com/blog/?p=205
    Can you describe the exact problem? 
    Cheers

  • I updated to 1.1.3 - Why can't I use any of the new features?

    Hey, I just got my ipod touch 8 gig. It came with 1.1.2 on it so I updated. Now when I go to settings and about, it says it's 1.1.3 as well... However I cant add clips to my home screen (when I press + all I see is add bookmark), and I also can't re arrange my icons.... Do I need to do something to enable these features? What the **** is wrong with my ipod, it seems to still be on 1.1.2 and just think it's on 1.1.3

    To add webapps to your homesceen, to add lyrics to your ipod, to make the apps on the homescreen jiggle around . You MUST buy the $20 upgrade. All the firmware update of 1.1.3 added was the ability for your ipod to watch rented movies from itunes and thats ONLY if you update your itunes to 7.6. So to get anything you wish you must get the $20 upgrade.

  • My old computer died can i still use FCS on my new computer

    The logic board on my old macbook pro died, so i bough a ne mac pro. Is it possible o reset the key code on finla cut studio so i dont have to go purchase this product again?

    As long as you have the serial number (or numbers if it's an upgrade) you simply install it as normal and put in the numbers when asked.
    You don't need to ask Apple for permission or tell it that you are changing computers.
    You could install it on millions of computers if you wanted but to stay legal you are only supposed to put it on a maximum of 2 computers (one laptop and one desktop that you own).
    I am not sure whether FCS 2 will work with Lion but  you'll soon find out!

  • Can Bridge sort my images into folders based on an Exif date?

    All my Adobe products are pre-CS/CS2 and I don't yet have access to Adobe Bridge. My trial copy has also timed out. However, I would like to know if Bridge has the capability to take a folder of images (Canon Raw) and move them to new folders based on the original exposure date as stored in the Exif metadata (ideally creating the required target folders automatically). I'm thinking in terms of one folder per year, probably with subfolders for each month.
    I'm simply trying to avoid having all my images in a single humongous folder with Bridge re-creating (or at least re-displaying) thousands of thumbnails every time I just want to look at a few images. Sorting them into folders by date just seems a simple solution to that problem. However, I'd be very happy to hear about alternative image filing ideas.
    Once I have used Bridge to create extended metadata for image categories, etc, I'm also assuming that Bridge will let me search for images that match defined criteria no matter how many folders those images are stored in.

    I don't know of any functionality to do that in Bridge now; however, it certainly can be done via scripting.
    Perhaps one of our forum contributors might want to take on a "picture sorter" script...
    Bob
    Adobe Workflow Scripting

Maybe you are looking for

  • Macbook pro will no longer boot from main sata bay after Yosemite

    Hi! I am really stuck as to why my macbook pro will no boot from the main Sata bay. I have the macbook pro late 2011  - a few months ago I installed a samsung 840 evo, and moved the 500gb hdd into the optical bay and all has been working perfectly un

  • Form Posts & Emails with no Data Returned

    I'm working on a php form that I'm trying to feed through GoDaddy's network.  I have a beginner's understanding and took code to create the php file that was linked in the "actions" part of the DW CS3 form's file. The email was sent to me with all th

  • Photosmart Premium not printing

    After updating drivers the 309g printer will only advance blank paper. There's no printer queue after ejecting the unprinted page. Any suggestions?

  • How to make use of visual studio effectively

    thank you for giving me this great oppurtunity to be part of this furum i will appriciate and assistance from you as regarding the efffective use of this software sent to my hotmail, thanks

  • SO & PO in same table

    hi friends , can i get VBELN (SO) and EBELN (PO) in same ddic table. thanks . BHUPI