I have a form in which you drag and drop files, and I was wondering how I can get the application to find out if the data is a file or folder.
My first attempt was to search for "." in the data, but then in some folders there. in them. I also tried to fulfill the condition File.Exists and Directory.Exists, but then it searches only the current path of the application, and not anywhere else.
In any case, can I somehow apply .Exists in a specific directory, or is there a way to check which data types are being dragged into the form?
c # file directory folder drag-and-drop
Raphael
source share