Solved

Directory Search

Posted on 1998-09-17
3
141 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now