Is there any type of VB.NET code that enables me to delete all the contents of a certain folder
Printable View
Is there any type of VB.NET code that enables me to delete all the contents of a certain folder
Sure there is. :afrog:
Hi
Check out the DirectoryInfo class.
Regards
Jorge
real clever mendhak
now would u plz give me that code
Hi
Well i have already gave your hint search msdn DirectoryInfo class members and one of them .delete.
MSDN is your best friend...
Regards
Jorge
still cant work things out
guys i need HELP
What do you have so far?
what i need to do is clear the contents of the following:
- recent documents
- temp internet files
- history
- Temp
"crptcblade" -- I got nothing
Try "something" -- then get back to us. ;)
man i've tried
Ugh...Show us what you've tried. Maybe you missed something that someone else can point out.
Post your code.
What did i say about directoryinfo.delete method?Quote:
Originally posted by waelr
man i've tried
RegardsVB Code:
Dim di As New System.IO.DirectoryInfo("c:\temp") Try di.Delete(True) Catch ex As Exception MessageBox.Show(ex.Message) End Try
Jorge