-
October 1st, 2003, 03:33 PM
#1
Directory.getFiles Problem
Hi,
I'm a bit confused by the pattern element of the Directory.getFiles() method.
I want to retrieve all files in a directory with jpg and tif extensions, but I can't get the following to work:
files = dl.getFiles(filePath,"*jpg;*.tif");
If I use 'dir *jpg;*.tif' in a command window the pattern seems to work, but not for the C# code.
Thanks
-
October 2nd, 2003, 01:32 AM
#2
You have to call Directory.GetFiles() twice to do this...
martin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|