Solved

Directory Search

Posted on 1998-09-17
3
144 Views
Last Modified: 2010-07-27
I am trying to go through a directory structure and copy all of the files in each directory.  I have it working so the files are copied but I can't figure out how to recursively search all of the directories.  
0
Comment
Question by:thorner
3 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1435447
This is cumbersome to program, simple for DOS.

SHELL( "XCOPY " & source & " /S /E " & target)

Also have ExecCmd that makes VB wait for child to finish before continuing.

Let me know if you want code to ExecCmd
0
 

Author Comment

by:thorner
ID: 1435448
I want to be able to do it through the GUI.  I just need to know how to go back a directory.  I'm getting to the last directory and getting stuck.  I've tried:
 dirPath.Path = dirPath.List(DirPath.ListIndex - 1).  Obviousely that's wrong but I don't know why.
0
 
LVL 9

Accepted Solution

by:
cymbolic earned 50 total points
ID: 1435449
I have a project that recurses through a directory tree and displays it in a tree mode.  You could use this to go up and down the tree, doing what ever you can get away with to the files.  Email me at cymbolic@aol.com, and I'll send it to you.
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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 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