Results 1 to 3 of 3

Thread: Deleting a file (RESOLVED)

  1. #1

    Thread Starter
    Hyperactive Member segrobiur's Avatar
    Join Date
    May 2004
    Location
    Portugal
    Posts
    371

    Question Deleting a file (RESOLVED)

    Hi...

    Is there any simple VB command to delete a file?

    dim A as string

    A="C:\windows\test.tmp"
    Delete A (???)

    (Definitly a rookie question!!)

    thanks in advance
    Last edited by segrobiur; Aug 2nd, 2004 at 03:39 AM.

  2. #2
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667
    Try this

    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Command1_Click()
    4.        
    5.              Kill "C:\windows\test.tmp"
    6.  
    7. End Sub

    Hope this helps!!

  3. #3

    Thread Starter
    Hyperactive Member segrobiur's Avatar
    Join Date
    May 2004
    Location
    Portugal
    Posts
    371
    Many thanks ...

    I'll try as soon as I can..

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