For windows, you can simply use the windows api. I think there has even been a code for that around the board - code archive (file requester).
Perhaps it has implementation for other OS as well :-)
Perhaps it has implementation for other OS as well :-)