top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

can we delete a file or folder created before a particular date in visual basic

+5 votes
377 views
can we delete a file or folder created before a particular date in visual basic
posted Dec 16, 2013 by Neeraj Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

You can do this :

first get creation time of the file using GetcreationTime property..
Then check this time in a if condition that
IF createtime Prior to given time THEN
Delete the file
END IF

answer Jan 13, 2014 by Atul Mishra
...