|
-
Dec 1st, 1999, 01:13 AM
#1
Youc can use FileSystem Object.
Add a reference to Microsoft Scripting Runtime Library. Then use use:
Code:
Dim oFS As New FileSystemObject
oFS.DeleteFolder "C:\MyFolder"
Note: You would have to include scrrun.dll with your project after you compile it.
------------------
Serge
Software Developer
[email protected]
[email protected]
ICQ#: 51055819
[This message has been edited by Serge (edited 12-01-1999).]
-
Dec 1st, 1999, 12:26 PM
#2
New Member
We need to delete a directory and all its contents from within VB. This needs to be done without the user having to answer any prompts eg. Are you sure you want to delete this directory and all its contents?
Can anyone offer any pointers.
All help appreciated.
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
|