Removing a file with VB.NET Program

  • Thread starter Thread starter Joris De Groote
  • Start date Start date
J

Joris De Groote

Hi,

I have created a file in my VB.NET program, now at the end, I want to delete
that file again. How can I do this (I have in my variable 'textbestand'
where the file is located)

Thanks
Joris
 
Hi,

Joris De Groote said:
How can I do this (I have in my variable 'textbestand' where the file is
located)

My.Computer.FileSystem.DeleteFile("C:\test.txt")
Greets,Kurt
 
Thanks!
I was looking @ system.io.delete of something, didn't think there had to be
file in it to.

Greetz
Joris
 
Joris De Groote said:
I have created a file in my VB.NET program, now at the end, I want to
delete that file again. How can I do this (I have in my variable
'textbestand' where the file is located)

'Kill(<file name>)'.
 
Back
Top