Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to search for a folder without knowing the path

Status
Not open for further replies.

RenegadeTech

Technical User
May 8, 2003
12
US
I would like to write a script to search for a folder with an unknown path such as "C:\Documents and Settings\bhess\Local Settings\Application Data\Identities\{F6EA36BB-8413-48A5-B5F4-B7D9E211EC6B}\Microsoft\Outlook Express" where the hash value changes with each user profile. I would then like to copy the Outlook Express folder to another drive for backup purposes. Can anyone point me in the proper direction?

Thanks,
Brad
 
I think you will need to first determine how to search directories recursively. That has been covered in detail here. Next you would need IMO to use a Regex object to find the dir you want in the dirs you search recursively. Let me know if you need more detail, but that is what I would do from the 10,000ft view.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top