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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search for sub-folders

Status
Not open for further replies.

cerruti1881

Technical User
Nov 8, 2012
10
AU
Senario:

Suppose there is a remote PC named "123456w".

Here is the folder structure that I want to search:

C:\Users
\TEST001
\TEST002
\TEST002.TEMP
\TEST002.TEMP001
\TEST002.TEMP002
\TEST003
......

I want the script to return all folder name started with "TEST002" (which in above example has 3 folders, it may vary on different computers) into an array for further renaming purpose.

Can anyone give a sample code?

Cheers!
 
Sorry, all the TESTxxx folders are subfolders under C:\User
 
What have YOU tried so far, and where in YOUR code are you stuck ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top