0
FileInfo[] Images; 
 Images = Folder.GetFiles("Image Files (JPEG,GIF,BMP)|*.jpg;*.jpeg;*.gif;*.bmp|JPEG Files(*.jpg;*.jpeg)|*.jpg;*.jpeg|GIF Files(*.gif)|*.gif|BMP Files(*.bmp)|*.bmp|All Files|*.*", SearchOption.AllDirectories);

getting error here

An unhandled exception of type 'System.ArgumentException' occurred in mscorlib.dll

Additional information: Illegal characters in path.

completely confused because it works nice in other app. what i m missing?
help

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by __avd
0

Error says that the first argument of GetFiles method has invalid characters or pattern. Use wild card chars - * or ? e.g. *.txt

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.