Go Back   TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Need a script to delete temporary ASP.NET files

Windows Server Help


Reply
 
Thread Tools Search this Thread
  #1  
Old 13-02-2008
Mak66
 
Posts: n/a
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

Reply With Quote
  #2  
Old 13-02-2008
Pegasus \(MVP\)
 
Posts: n/a
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\*.*"


Reply With Quote
  #3  
Old 13-02-2008
Mak66
 
Posts: n/a
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\*.*"
>
>
>

Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows Server > Windows Server Help
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Need a script to delete temporary ASP.NET files"
Thread Thread Starter Forum Replies Last Post
Script to search for and delete all files with extension xxx Mike62 Windows Server Help 3 19-03-2012 02:48 PM
Is it safe to delete temporary files from Nero PeakFiles folder Upendra Windows Software 6 07-07-2011 02:27 PM
Automatic delete temporary files from Internet Explorer Jaisudha Tips & Tweaks 1 07-07-2009 10:40 AM
Delete files with logoff/on script Pine Le Windows Security 1 03-06-2008 11:19 PM
How users delete automatically temporary internet files? johawahn Active Directory 1 06-02-2008 06:39 PM


All times are GMT +5.5. The time now is 02:21 PM.