|
-
Mar 26th, 2008, 06:58 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2005] Deleting External
Hello i would like to know how to make a program the deletes external files. Like say if someone needs to delete a group of old files he has he types something in my program does the settings i provide and it will delete the files.
-
Mar 26th, 2008, 07:20 AM
#2
Re: [2005] Deleting External
vb.net Code:
System.IO.File.Delete("d:\yourfile.txt")
Is this what you mean?
-
Mar 26th, 2008, 08:01 AM
#3
Re: [2005] Deleting External
Read up the documentation for System.IO.File class or System.IO.FileInfo class. In order to delete "old files", you first must know how old a file is. And to find out how old a file is, you compare the current date and time to the file's creation date and time stamp. You will also need to use some methods in System.IO.Directory class to get a list of files in a folder, so read up on that class too.
-
Mar 26th, 2008, 06:13 PM
#4
Thread Starter
Frenzied Member
Re: [2005] Deleting External
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|