Link to home
Start Free TrialLog in
Avatar of thorner
thorner

asked on

Directory Search

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.  
Avatar of mark2150
mark2150

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
Avatar of thorner

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of cymbolic
cymbolic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial