Solved

Deleting Folders With VB

Posted on 1998-12-09
2
254 Views
Last Modified: 2010-05-03
How can you remove a folder which contains files and other folders.  Is it possible to delete these all at once if you know the path to the files and how?
0
Comment
Question by:sye
2 Comments
 
LVL 1

Accepted Solution

by:
slobstar earned 50 total points
ID: 1449036
You will have to remove them seperatly!

RmDir path             'for the folders
Kill path              'for the files

ex:
Kill "c:\new\*.*"      'delete all files in the new folder

Just write a small function to read through your filesystem and delete whatever you want to delete...

Good Luck!

     
0
 

Author Comment

by:sye
ID: 1449037
I was hoping there was a way to delete them all at once same as deleting a folder in explorer


0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question