Results 1 to 4 of 4

Thread: Deleting files

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321

    Question Deleting files

    Hi, How do I delete a file, that is selected from a list box?

  2. #2
    Hyperactive Member WP's Avatar
    Join Date
    Aug 2000
    Location
    Belgium
    Posts
    278
    Use KILL:

    Call Kill("c:\file.txt")

    WP

    Visual Basic 6.0 EE SP5 / .Net
    Windows XP

  3. #3
    Megatron
    Guest
    Code:
    Kill(List1.Text)

  4. #4
    Megatron
    Guest
    Also, change the path, to make sure you're in the right directory.
    Code:
    ChDir "C:\MyDir"
    Kill (List1.Text)

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