Results 1 to 3 of 3

Thread: Need a script to delete temporary ASP.NET files

  1. #1
    Mak66 Guest

    Need a script to delete temporary ASP.NET files

    Hi,

    I have a weekly (or so) task that I perform, which essentially involved
    going through the temporary ASP.NET file structure, and delete temporary
    files and folders that are not actively being used. All I really need is a
    script that deletes certain files which are not currently being locked....

    I have seen and used scripts to delete singular, and multiple files, but in
    my searching I have not been able to find information on checking whether a
    file is in use....

    Any help would be appreciated.

    Thanks
    Mark

  2. #2
    Pegasus \(MVP\) Guest

    Re: Need a script to delete temporary ASP.NET files


    "Mak66" <Mak66@discussions.microsoft.com> wrote in message
    news:31ED0954-42AB-4D64-84C4-DBE042F166E6@microsoft.com...
    > Hi,
    >
    > I have a weekly (or so) task that I perform, which essentially involved
    > going through the temporary ASP.NET file structure, and delete temporary
    > files and folders that are not actively being used. All I really need is a
    > script that deletes certain files which are not currently being locked....
    >
    > I have seen and used scripts to delete singular, and multiple files, but
    > in
    > my searching I have not been able to find information on checking whether
    > a
    > file is in use....
    >
    > Any help would be appreciated.
    >
    > Thanks
    > Mark


    You can use a humble batch file like the one below. It will
    delete all the files it can.

    @echo off
    del /q "d:\My Files\*.*"



  3. #3
    Mak66 Guest

    Re: Need a script to delete temporary ASP.NET files

    Cheers Pegasus.

    "Pegasus (MVP)" wrote:

    >
    > "Mak66" <Mak66@discussions.microsoft.com> wrote in message
    > news:31ED0954-42AB-4D64-84C4-DBE042F166E6@microsoft.com...
    > > Hi,
    > >
    > > I have a weekly (or so) task that I perform, which essentially involved
    > > going through the temporary ASP.NET file structure, and delete temporary
    > > files and folders that are not actively being used. All I really need is a
    > > script that deletes certain files which are not currently being locked....
    > >
    > > I have seen and used scripts to delete singular, and multiple files, but
    > > in
    > > my searching I have not been able to find information on checking whether
    > > a
    > > file is in use....
    > >
    > > Any help would be appreciated.
    > >
    > > Thanks
    > > Mark

    >
    > You can use a humble batch file like the one below. It will
    > delete all the files it can.
    >
    > @echo off
    > del /q "d:\My Files\*.*"
    >
    >
    >


Similar Threads

  1. Script to search for and delete all files with extension xxx
    By Mike62 in forum Windows Server Help
    Replies: 3
    Last Post: 19-03-2012, 02:48 PM
  2. Replies: 6
    Last Post: 07-07-2011, 02:27 PM
  3. Automatic delete temporary files from Internet Explorer
    By Jaisudha in forum Tips & Tweaks
    Replies: 1
    Last Post: 07-07-2009, 10:40 AM
  4. Delete files with logoff/on script
    By Pine Le in forum Windows Security
    Replies: 1
    Last Post: 03-06-2008, 11:19 PM
  5. How users delete automatically temporary internet files?
    By johawahn in forum Active Directory
    Replies: 1
    Last Post: 06-02-2008, 06:39 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,571,235.43276 seconds with 17 queries