SHELLEXECUTEINFO boxmake;
::ZeroMemory(&boxmake, sizeof(SHELLEXECUTEINFO));
boxmake.cbSize = sizeof(SHELLEXECUTEINFO);
boxmake.lpFile = _T("tesseract.exe");
boxmake.lpParameters = box_make + " batch.nochop makebox";
boxmake.nShow = SW_HIDE;
boxmake.fMask = SEE_MASK_NOCLOSEPROCESS;
boxmake.lpVerb = _T("open");
boxmake.lpDirectory = fp;
DWORD result = ::ShellExecuteEx(&boxmake);
if (boxmake.hProcess != NULL)
{
::WaitForSingleObject(boxmake.hProcess, INFINITE);
}
'Development > MFC(Visual C++)' 카테고리의 다른 글
[MFC] 파일의 내용 중 부분만 수정하여 쓰기 (1) | 2016.06.29 |
---|---|
[MFC] 폴더의 하위 폴더까지의 지정한 확장자명 파일들 삭제 (0) | 2016.06.29 |
그냥 공부 (0) | 2016.06.28 |
(VC++) 각종 에러 모음 (0) | 2016.06.24 |
[MFC] 디렉토리 파일 개수 구하는 함수 (0) | 2016.06.24 |