-
Jan 5th, 2000, 06:10 AM
#1
Thread Starter
Frenzied Member
How can i delete a selected folder in a DirList Box???
i have tried RmDir Dir1.Path
No go!
------------------
Yours sincierly
CyberCarsten
http://homee18.inet.tele.dk/cyber/
carsten.h.thomsen@mail.tele.dk
-
Jan 5th, 2000, 06:52 AM
#2
You can use FileSystem Object.
Add a reference to Microsoft Scripting Runtime Library. Then use use:
Dim oFS As New FileSystemObject
oFS.DeleteFolder "C:\MyFolder"
Note: You would have to include scrrun.dll with your project after you compile it.
Thanks goes to Surge for this nice peice of work..
------------------
John T. Mieske
Star Trek LCARS programmer
Knight Vision Enterprises
kvision@gate.net
-
Jan 5th, 2000, 02:27 PM
#3
Guru
RmDir only works when the folder is empty
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
|