|
-
Nov 22nd, 2004, 07:02 AM
#1
Thread Starter
Addicted Member
Folders
Is there any type of VB.NET code that enables me to delete all the contents of a certain folder
-
Nov 22nd, 2004, 07:06 AM
#2
Sure there is.
-
Nov 22nd, 2004, 07:08 AM
#3
Hi
Check out the DirectoryInfo class.
Regards
Jorge
"The dark side clouds everything. Impossible to see the future is."
-
Nov 22nd, 2004, 07:34 AM
#4
Thread Starter
Addicted Member
real clever mendhak
now would u plz give me that code
-
Nov 22nd, 2004, 07:44 AM
#5
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
"The dark side clouds everything. Impossible to see the future is."
-
Nov 23rd, 2004, 11:20 AM
#6
Thread Starter
Addicted Member
still cant work things out
guys i need HELP
-
Nov 23rd, 2004, 11:25 AM
#7
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 23rd, 2004, 11:25 AM
#8
Thread Starter
Addicted Member
what i need to do is clear the contents of the following:
- recent documents
- temp internet files
- history
- Temp
-
Nov 23rd, 2004, 11:28 AM
#9
Thread Starter
Addicted Member
"crptcblade" -- I got nothing
-
Nov 23rd, 2004, 11:30 AM
#10
Try "something" -- then get back to us.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 23rd, 2004, 11:33 AM
#11
Thread Starter
Addicted Member
-
Nov 23rd, 2004, 11:37 AM
#12
Ugh...Show us what you've tried. Maybe you missed something that someone else can point out.
Post your code.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Nov 23rd, 2004, 11:44 AM
#13
Originally posted by waelr
man i've tried
What did i say about directoryinfo.delete method?
VB Code:
Dim di As New System.IO.DirectoryInfo("c:\temp")
Try
di.Delete(True)
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Regards
Jorge
"The dark side clouds everything. Impossible to see the future is."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|