![]() |
#1 | ||
Junior Member
Join Date: Apr 2014
Posts: 16
|
Strange work of FindFirst function
Good day! I find some strange work of FindFirst/FindNext and Locate function.
For example we have 10 dirs on local hard drive: Quote:
But if this folders locate on network share, connected as letter, we get random order, but each time the same: Quote:
|
||
![]() |
![]() |
![]() |
#2 | |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,337
|
Windows does not sort the results. Some filesystems store the directory entries sorted, some store them by creation time. NSIS just returns the entries without any extra sorting.
Quote:
If you are displaying the files in a listbox you can set a style to get the listbox to sort for you... IntOp $PostCount $PostCount + 1 |
|
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Apr 2014
Posts: 16
|
Anders, thanks for answer! I think is universally to sort list in array, if it can't be done more easy.
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|