?
Solved

Deleting Folders With VB

Posted on 1998-12-09
2
Medium Priority
?
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
slobstar earned 150 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

801 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