How to delete files using windows task scheduler by timely manner

In most of the applications we have to delete the files in timely manner like minutes, hours, days, months or years.  We can do this job using windows task scheduler.

@ECHO ON
DEL /F /S /Q /A "D:\deletefiles\*"

keep above code in notepad and save as .bat file.... and run through control panel --> schedule jobs or Tasks with time. 
Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

 
Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar