|
|
|
C# WinApp มีโค้ดสำหรับดู extensions file ทั้งหมด |
|
|
|
|
|
|
|
Code (C#)
var ext = new List<string> {"jpg", "gif", "png"};
var myFiles = Directory.GetFiles(dir, "*.*", SearchOption.AllDirectories)
.Where(s => ext.Contains(Path.GetExtension(s)));
แบบนี้พอได้ไหม๊ครับ
|
|
|
|
|
Date :
2017-07-07 09:51:33 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 04
|