Hey Folks

I am currently developping an application where i need to store a file in a certain directory.
The filename is determined by the application, but the path isn't.
If I use a filedialog, i need to select a file, before i can click ok.
Is it possible to only take the path of the directory without selecting a filename?

I really hope someone can help me solve my problem asap.

Thanks in Advance