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>)'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top