Results 1 to 4 of 4

Thread: [RESOLVED] [2005] Deleting External

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Resolved [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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] Deleting External

    vb.net Code:
    1. System.IO.File.Delete("d:\yourfile.txt")
    Is this what you mean?

  3. #3
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    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.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Re: [2005] Deleting External

    Thankyou for your help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width