473,396 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Multiple file extensions

Hi everybody.

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

Thank you
Nov 17 '05 #1
3 966
And if you want 20 extensions or more???
There must be a way to do it in one shot ;-)
"MS News (MS ILM)" <sq**********@hotmail.com> escribió en el mensaje
news:OH**************@TK2MSFTNGP12.phx.gbl...
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" <ot****@terra.es> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
Hi everybody.

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

Thank you


Nov 17 '05 #2
Good Luck, Loop through a collection of "*.???", or Use Reflection or call
APIs

"Oterox" <ot****@terra.es> wrote in message
news:OV**************@tk2msftngp13.phx.gbl...
And if you want 20 extensions or more???
There must be a way to do it in one shot ;-)
"MS News (MS ILM)" <sq**********@hotmail.com> escribió en el mensaje
news:OH**************@TK2MSFTNGP12.phx.gbl...
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" <ot****@terra.es> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
Hi everybody.

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

Thank you



Nov 17 '05 #3
Good Luck, Loop through a collection of "*.???", or Use Reflection or call
APIs

"Oterox" <ot****@terra.es> wrote in message
news:OV**************@tk2msftngp13.phx.gbl...
And if you want 20 extensions or more???
There must be a way to do it in one shot ;-)
"MS News (MS ILM)" <sq**********@hotmail.com> escribió en el mensaje
news:OH**************@TK2MSFTNGP12.phx.gbl...
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" <ot****@terra.es> wrote in message
news:eb**************@TK2MSFTNGP10.phx.gbl...
Hi everybody.

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

Thank you



Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Cable | last post by:
Hello, I am hoping that someone can answer a question or two regarding file access. I have created an app that reads an image from a file then displays it (using OpenGL). It works well using...
10
by: Tim Mulholland | last post by:
My company is about to begin working on an ASP.NET application. There are going to be two primary developers working on this project. It will be a fairly deep project (lots of lines of code) but...
10
by: Noozer | last post by:
I'm writing an ASP application and have a noob question... I have a class that access an MS SQL database. I have another class also accesses an MS SQL database and this second class uses objects...
5
by: David C. Ullrich | last post by:
Would there be issues (registry settings, environment variables, whatever) if a person tried to install versions 1.x and 2.x simultaneously on one Windows system? Windows 98, if it matters. (I...
2
by: antonyliu2002 | last post by:
I am testing AJAX. I've downloaded the AJAX Extension and the CTP December package and installed on BOTH my development machine and the production server. Then I created a very very simple web...
8
by: SAIRAAM | last post by:
hi all i am right now examing one of the project thats avaliable.in which they have taken single log file as input. the code for it is given below. Private Sub...
38
by: ted | last post by:
I have an old link that was widely distributed. I would now like to put a link on that old page that will go to a new page without displaying anything.
3
by: Davo1977 | last post by:
Does anyone know a regular expression that will rename multiple files that have different extensions to have the same extension. For example, you could use this code when several text files exist in...
12
by: Airtech | last post by:
I have a routine that searches a directory structure for files. Right now the file pattern is simply *.* and when it is finished, I have a cleanup routine that strips out the file extensions that I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.