Set the lpstrInitialDir member of the OPENFILENAME structure. If you're using the MFC class CFileDialog, that structure is a class member called m_ofn.