OpenSTUDY/MFC

ShellExecute

openCTRL 2011. 11. 5. 13:17

HWND hwnd,
LPCWSTR IpOperation,
LPCWSTR IpFile,
LPCWSTR IpParameters,
LPCWSTR IpDirectory,
INT nShowCmd


//인터넷 팝업으로 사용은

ShellExecute(NULL, L"open", L"C:\\Program Files\\Internet Explorer\\iexplore.exe",L"http://openctrl.tistory.com", NULL, SW_SHOW);

//계산기 실행
ShellExecute(NULL, L"open", L"C:\\WINDOWS\\system32\\calc.exe", NULL, NULL, SW_SHOW);

//메모장 파일열기
ShellExecute(NULL, L"open", L"C:\\WINDOWS\\system32\\notepad.exe", L"C:\\Program Files\\readme.txt", NULL, SW_SHOW);