Distinguish between Folder drop & Files dropped

Ultrawhack

Well-known member
Joined
Jul 5, 2006
Messages
164
Location
Canada
Programming Experience
3-5
I need to trigger specific code when a user drops an entire folder on my form. How can I test if whats dropped is file(s) or folder.

How can I distinguish between a folderdrop and filedrop ?

Thanks !
 
A dropped folder lists as the folder path, not the files it contains. You have to check each path dropped if it is a folder (shared method IO.Directory.Exists) - else it is a file. A filedrop may contain both files and folders.
 
Back
Top