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

GetDirectories not equal search pattern

Status
Not open for further replies.

GoTerps88

Programmer
Joined
Apr 30, 2007
Messages
174
Location
US
I cannot seem to find this anywhere on the web. I am looking for a way create a pattern that searches all file directories EXCEPT the pattern listed.

This is for DirectoryInfo.GetDirectories(searchPattern,searchOption)

 
You might need to try getting the list of directories that contain the pattern, then getting the all directories, and removing the former from the latter.

Hope this helps,

Alex

[small]----signature below----[/small]
Majority rule don't work in mental institutions

My Crummy Web Page
The IT Community of the 21st Century
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top