none
How to Delete Old Files with Robocopy?

    Question

  • Hi folks,

    I like to delete files older than 14 days through Robocopy. We have switch for Move which deletes source files and copies to destination folder. But I like to delete Older files from a Folder.

    I dont know which switch need to use for this operation. appreciate if any one could help me in this.

    Thanks in advance
    Tuesday, December 30, 2008 3:25 PM

All replies

  •  

    First of all it is TSQL forum.. K .. You can find all the possible option of robocopy by typing “robocopy.exe /?”


    I am Back..!
    Tuesday, December 30, 2008 3:33 PM
  • yh i knew it, I was trying to Setup a Sql Agent job thorugh T-sql which executes robocopy exe, or appreciate if you could guide to proper forum section under MSDN.
    Thanks, Krishna Nellutla
    Tuesday, December 30, 2008 3:53 PM