Delete files older than 7 days from a "Network shared folder"

  • Hi all,

    i know there are many solutions available for deleting files from a folder older than X days.\

    But need a help to create a Script Task or Any other solution that can delete files from shared folder on a network shared drive.

    Thanks in advance.

  • What problems are you running into?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Koen Verbeeck (9/6/2013)


    What problems are you running into?

    Thanks for acknowledging my problem.

    In a nutshell, i want a Script for my script task that delete all files from the Folder (which is a Shared folder in a network ) which are older than 7 days.

  • you can use fileinfo in C#

    Please see the below link.

    http://www.dotnetperls.com/fileinfo

    ----------------------------------------------------------------------------------------------------------------------------------------------------
    Roshan Joe

    Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • Mr. Kapsicum (9/6/2013)


    Koen Verbeeck (9/6/2013)


    What problems are you running into?

    Thanks for acknowledging my problem.

    In a nutshell, i want a Script for my script task that delete all files from the Folder (which is a Shared folder in a network ) which are older than 7 days.

    I know what you want to realize.

    My question was what problems do you have when writing the script?

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Mr. Kapsicum (9/6/2013)


    Koen Verbeeck (9/6/2013)


    What problems are you running into?

    Thanks for acknowledging my problem.

    In a nutshell, i want a Script for my script task that delete all files from the Folder (which is a Shared folder in a network ) which are older than 7 days.

    You're not asking any questions here. If you want help with something, please ask a question.

    At the moment, I have been able to derive the fact that you would like some help with writing a script task.

    I also know that you are aware that there are plenty of resources available on-line for such file-related tasks, but for some reason these are not good enough for you.

    The absence of evidence is not evidence of absence.
    Martin Rees

    You can lead a horse to water, but a pencil must be lead.
    Stan Laurel

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply