Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 1.0 and Visual Studio.NET > VS.NET 2002/2003
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2004, 10:19 AM
Authorized User
 
Join Date: Oct 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default DirectoryInfo.GetFiles(pattern): search pattern fo

hi,

i m trying with search pattern "*.txt | *.doc" for DirectoryInfo.GetFiles(string pattern).
but this doesn't work. what is the syntax for multiple files search pattern?

please help.

Arif.


 
Old October 19th, 2004, 11:59 PM
Authorized User
 
Join Date: Oct 2004
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to dotnetprogrammer
Default

hi
u need to use filter seperately something like this

string s1[] = di.getfiles("*.txt");
string s2[] = di.getfiles("*.xls");

thanks

dotnet





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax Pattern TheGame Ajax 1 July 26th, 2008 03:02 PM
New help with Pattern in Java 2BOrNot2B Java Basics 1 July 1st, 2008 04:40 PM
Dispose Pattern guntank C# 0 September 26th, 2006 10:08 PM
Javascript Pattern How To muklee Javascript How-To 3 September 15th, 2006 09:11 AM
Desing Pattern tilakkalyan J2EE 3 February 14th, 2006 07:04 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.