Multiple file extensions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oterox

    #1

    Multiple file extensions

    Hi everybody.

    How can i select *.jpg and *.gif files from a dir??
    I'm using this:
    Directory.GetFi les(PathVar, "*.jpg")
    but i don't know how to get more extensions than *.jpg

    Thank you


  • Oterox

    #2
    Re: Multiple file extensions

    And if you want 20 extensions or more???
    There must be a way to do it in one shot ;-)


    "MS News (MS ILM)" <sql_agentman@h otmail.com> escribió en el mensaje
    news:OHe8t3BZDH A.1204@TK2MSFTN GP12.phx.gbl...[color=blue]
    > why not select the "*.jpg" first then go back and select the "*.gif" then
    > "*.Whatever "
    > Do you want to do it all in one shot.
    >
    > "Oterox" <oterox@terra.e s> wrote in message
    > news:ebxusrBZDH A.1900@TK2MSFTN GP10.phx.gbl...[color=green]
    > > Hi everybody.
    > >
    > > How can i select *.jpg and *.gif files from a dir??
    > > I'm using this:
    > > Directory.GetFi les(PathVar, "*.jpg")
    > > but i don't know how to get more extensions than *.jpg
    > >
    > > Thank you
    > >
    > >[/color]
    >
    >[/color]


    Comment

    • MS News \(MS ILM\)

      #3
      Re: Multiple file extensions

      Good Luck, Loop through a collection of "*.???", or Use Reflection or call
      APIs

      "Oterox" <oterox@terra.e s> wrote in message
      news:OV6sc7MZDH A.4020@tk2msftn gp13.phx.gbl...[color=blue]
      > And if you want 20 extensions or more???
      > There must be a way to do it in one shot ;-)
      >
      >
      > "MS News (MS ILM)" <sql_agentman@h otmail.com> escribió en el mensaje
      > news:OHe8t3BZDH A.1204@TK2MSFTN GP12.phx.gbl...[color=green]
      > > why not select the "*.jpg" first then go back and select the "*.gif"[/color][/color]
      then[color=blue][color=green]
      > > "*.Whatever "
      > > Do you want to do it all in one shot.
      > >
      > > "Oterox" <oterox@terra.e s> wrote in message
      > > news:ebxusrBZDH A.1900@TK2MSFTN GP10.phx.gbl...[color=darkred]
      > > > Hi everybody.
      > > >
      > > > How can i select *.jpg and *.gif files from a dir??
      > > > I'm using this:
      > > > Directory.GetFi les(PathVar, "*.jpg")
      > > > but i don't know how to get more extensions than *.jpg
      > > >
      > > > Thank you
      > > >
      > > >[/color]
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • MS News \(MS ILM\)

        #4
        Re: Multiple file extensions

        Good Luck, Loop through a collection of "*.???", or Use Reflection or call
        APIs

        "Oterox" <oterox@terra.e s> wrote in message
        news:OV6sc7MZDH A.4020@tk2msftn gp13.phx.gbl...[color=blue]
        > And if you want 20 extensions or more???
        > There must be a way to do it in one shot ;-)
        >
        >
        > "MS News (MS ILM)" <sql_agentman@h otmail.com> escribió en el mensaje
        > news:OHe8t3BZDH A.1204@TK2MSFTN GP12.phx.gbl...[color=green]
        > > why not select the "*.jpg" first then go back and select the "*.gif"[/color][/color]
        then[color=blue][color=green]
        > > "*.Whatever "
        > > Do you want to do it all in one shot.
        > >
        > > "Oterox" <oterox@terra.e s> wrote in message
        > > news:ebxusrBZDH A.1900@TK2MSFTN GP10.phx.gbl...[color=darkred]
        > > > Hi everybody.
        > > >
        > > > How can i select *.jpg and *.gif files from a dir??
        > > > I'm using this:
        > > > Directory.GetFi les(PathVar, "*.jpg")
        > > > but i don't know how to get more extensions than *.jpg
        > > >
        > > > Thank you
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...