Re: Directory.GetFileSystemEntries qestion

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 12/02/04


Date: Thu, 2 Dec 2004 22:36:10 +0100


" Just Me" <groups@a-znet.com> schrieb:
> Directory.GetFileSystemEntries
> where the search pattern is *.dll;*.exe
>
> That is find all the *.dll and all the *.exe files
> I think Directory.GetFileSystemEntries search pattern can not contain more
> than 1 pattern. Correct?
> Is there a simple way to accomplish that.

Make two consecutive calls to 'GetFileSystemEntries', one with the "*.dll"
pattern and one with "*.exe" as pattern.

-- 
 M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
 V B   <URL:http://dotnet.mvps.org/dotnet/faqs/> 


Relevant Pages

  • Re: double slash operator syntax question
    ... I don't know about // being some kind of operator other than a pattern ... match operator...but you could accomplish that like this ... If I omit the braces, ...
    (comp.lang.perl.misc)
  • Bash file "if exist" and looping question
    ... The following is a VERY naive way to accomplish "if any ... files in a pattern exist" do some stuff with them. ... This was run on Cygwin if it matters. ... Herb Martin ...
    (comp.os.linux.questions)
  • Re: number generator
    ... simple pattern or function in Python to accomplish that? ...
    (comp.lang.python)
  • Re: Looking for 2x size poncho knitting pattern
    ... Start with a "standard" pattern and add rows/rounds as necessary to ... accomplish the required size? ... >I'm looking for a 2x--plus size poncho pattern for my Mom. ...
    (rec.crafts.textiles.yarn)
  • Get SUM IF format equals
    ... Does anyone have any suggestions on how I might accomplish this? ... I have a spreadsheet with about 300 rows and 20 columns. ... The column is plain other than the pattern, no colors, just white. ... I can change the format to anything that will make it work if I need ...
    (microsoft.public.excel.worksheet.functions)