PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
Removing a file with VB.NET Program
Forums
Newsgroups
Microsoft DotNet
Microsoft VB .NET
Removing a file with VB.NET Program
![]() |
Removing a file with VB.NET Program |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Hi,
"Joris De Groote" <joris.degroote@skynet.be> schrieb im Newsbeitrag news:uA$dw47VGHA.5668@TK2MSFTNGP15.phx.gbl... > 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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
Joris,
Have a look at the file class. Be sure that you have closed the file before you use that. http://msdn2.microsoft.com/en-us/li...ile.delete.aspx I hope this helps, Cor "Joris De Groote" <joris.degroote@skynet.be> schreef in bericht news:uA$dw47VGHA.5668@TK2MSFTNGP15.phx.gbl... > 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 > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Thanks!
I was looking @ system.io.delete of something, didn't think there had to be file in it to. Greetz Joris "Cor Ligthert [MVP]" <notmyfirstname@planet.nl> wrote in message news:OsiXlC8VGHA.4148@TK2MSFTNGP15.phx.gbl... > Joris, > > Have a look at the file class. Be sure that you have closed the file > before you use that. > > http://msdn2.microsoft.com/en-us/li...ile.delete.aspx > > I hope this helps, > > Cor > > "Joris De Groote" <joris.degroote@skynet.be> schreef in bericht > news:uA$dw47VGHA.5668@TK2MSFTNGP15.phx.gbl... >> 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 >> > > |
|
|
|
#5 |
|
Guest
Posts: n/a
|
"Joris De Groote" <joris.degroote@skynet.be> schrieb:
> 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>)'. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

