Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help??
#1
OK I am making SMNN Program V7.

But I want to add this Feature.
Code:
If File.Exists("C:\file.txt") Then
            My.Computer.FileSystem.DeleteFile("file.txt")
            Form2.Show()
            Me.Close()
        End If
End Sub

But its not working???
FIXED IT THANKS ANYWAY
Reply
#2
My.Computer.FileSystem.DeleteFile("C:\file.txt")
Reply
#3
you need to put the directory where the file that you want to delete is present,for example,your file.txt is saved in c: you need to change ("file.txt") into ("C:\file.txt")
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)