R
R
RinatOktaevich2017-05-02 21:50:23
.NET
RinatOktaevich, 2017-05-02 21:50:23

How to find out the sort type of a directory?

Hello!
I am writing my Gif Viewer simple and light.
The problem is that when you run the program, it loads the file names of the current directory from the .gif types into the collection. But, I need to sort this collection according to the sorting type of the current directory in order to scroll through the GIFs in the same order in which the files of this directory are sorted.
How can this be implemented?
How can I programmatically find out how the files in the current directory are sorted?
I will be very grateful for your help))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem, 2017-05-02
@devspec

I mean - how are they sorted in Explorer? The task is non-trivial, it is solved using Windows Shell Interfaces .
And I'm 99% sure you don't need it.

V
V Sh., 2017-05-02
@JuniorNoobie

As far as I know, if you right-click in the explorer, you can see the sort type. It remains only to load all the files and attributes necessary for sorting and sort. And the sorting type may well be stored in the folder attributes ... Somewhere ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question