|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Removing a file with VB.NET ProgramHi,
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" <joris.degro***@skynet.be> schrieb im Newsbeitrag My.Computer.FileSystem.DeleteFile("C:\test.txt")news:uA$dw47VGHA.5668@TK2MSFTNGP15.phx.gbl... > How can I do this (I have in my variable 'textbestand' where the file is > located) Greets,Kurt 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/library/system.io.file.delete.aspx I hope this helps, Cor Show quoteHide quote "Joris De Groote" <joris.degro***@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 > Thanks!
I was looking @ system.io.delete of something, didn't think there had to be file in it to. Greetz Joris Show quoteHide quote "Cor Ligthert [MVP]" <notmyfirstn***@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/library/system.io.file.delete.aspx > > I hope this helps, > > Cor > > "Joris De Groote" <joris.degro***@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 >> > > "Joris De Groote" <joris.degro***@skynet.be> schrieb: 'Kill(<file name>)'.> 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) -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
How to retrive Outlook 2003 style gradient color schemes?
Dynamic DataGridView missing horizontal scrollbar Suggestions to reduce memory use when splitting a string Accessing Properties within a Panel Inheritance Reflection Question and MDI question Form Focus Reading a Webpage Source with Cyrillic Characters Serialization of Object Graph (Inheriting ArrayList) Get the Application Icon?? |
|||||||||||||||||||||||