C# How do I use Directory.GetFiles() to get files that have the same order as in Windows explorer?

前端 未结 7 989
萌比男神i
萌比男神i 2020-12-11 19:12

Is is possible to get files that is ordered same as in Windows Explorer

I know \"natural sort\", but it\'s not what I need, I need to get the file list ordered by th

相关标签:
7条回答
  • If you want natural sort order, you should either P/Invoke StrCmpLogicalW (http://msdn.microsoft.com/en-us/library/bb759947.aspx) or find a managed natural sort algorithm. There is no built-in natural sort in .NET Framework.

    0 讨论(0)
提交回复
热议问题