Abhilash J A

Abhilash J A

  • 530
  • 2.4k
  • 600.5k

How automatically calculate days then delete files c#?

Jan 11 2017 1:06 PM
Hello everyone,
 
I have this table structure.
 
 
Then, I am showing these items inside listview if archivedname is exist. After clicking a button, then there should a popup window will show as shown below.
 
 
 With respect to this pop-up, after add number of days, then want to delete automatically archived name containing each record from listview or database table older than give number days.
 
For example, if I am giving 90 days then click button, should delete all files after 90days from current date. 
 
How can I set automatic scheduler c# code?
 
Please help me. 
 

Answers (11)