Browse for Folder?

Hello SW Community,

I am currently using GetOpenFileName to open a file, but what I really need is to only select the folder that the file is in but not the file itself. For a quick fix, I can select the file then parse out the folder path, but what to do when the folder is empty? Please help!

J

SolidworksApi macros