Solved

Directory Search

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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

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…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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 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…

724 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