MFC, browse CWD


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. CString strDirectory;
  2. GetCurrentDirectory( _MAX_PATH, strDirectory.GetBufferSetLength( _MAX_PATH ) );
  3. strDirectory.ReleaseBuffer( );
  4.  
  5. ShellExecute(NULL, "open", strDirectory, NULL, NULL, SW_SHOWNORMAL);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.