Results 1 to 9 of 9
  1. #1
    wicho_koz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    193
    Reputation
    12
    Thanks
    52
    My Mood
    Shocked

    [Help]Delete a File[solved]

    I want to make
    delete a file. exe. with a button in visual basic


  2. #2
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    IO.File.Delete("Path")



  3. #3
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Or

    [highlight=vbnet]
    Dim file2delete As New FileInfo("File Path and File")
    file2delete.Delete()
    [/highlight]

    many ways to do it.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  4. #4
    wicho_koz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    193
    Reputation
    12
    Thanks
    52
    My Mood
    Shocked
    thans people!!!

    now, i can make my fake haha

  5. #5
    Lyoto Machida's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Far away with girls
    Posts
    3,734
    Reputation
    133
    Thanks
    1,621
    My Mood
    Aggressive
    Code:
    Kill("C:\PATH\FILE.exe")

  6. #6
    wicho_koz's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    193
    Reputation
    12
    Thanks
    52
    My Mood
    Shocked
    Dim file2delete As New FileInfoo("C:\Users\not the name of the other pc\Documents\Mt2 PANDORA\Mt2Guabina2.exe")
    file2delete.Delete()

    as would be the right thing?

  7. #7
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    Yes, Correct.


     


     


     



    The Most complete application MPGH will ever offer - 68%




  8. #8
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    this thread was solved before, isn't it? Why ppl still post?

  9. #9
    NextGen1's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Not sure really.
    Posts
    6,312
    Reputation
    382
    Thanks
    3,019
    My Mood
    Amazed
    The OP asked a question (which he is entitled to do) however your post is just spam.


     


     


     



    The Most complete application MPGH will ever offer - 68%