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.
keep above code in notepad and save as .bat file.... and run through control panel --> schedule jobs or Tasks with time.
@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.
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.