Results 1 to 3 of 3

Thread: Delete .rtf file in folder

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    219

    Question Delete .rtf file in folder

    Will anyone show me how to delete a .rtf file in a folder for me? When I click the Delete button on the form, I like the to program to go into a folder which I specified the path and delete a file that matches a criteria. I'm using the SaveFileDiaglog to save the file, but I don't know how to delete it.

    Many thanks for any help!

    ljCharlie

  2. #2
    New Member
    Join Date
    Sep 2003
    Posts
    8
    VB Code:
    1. Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click
    2.         IO.File.Delete("c:/test.txt")
    3.     End Sub

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 2003
    Posts
    219

    Thumbs up

    Thank you very much! It has worked exactly the way I wanted. You're SUPER HELPER!

    ljCharlie

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