I've a *.mht file (say, abc.mht) which opens in IE explorer manually. I want to automate this process (programatically from c++) of 1) opening the abc.mht file 2) Keeping it open for few seconds 3) Then, close the abc.mht file from within my c++ program.
I've been using the below command for running EXEs from my c++ code. But I can't use the similar analogy for opening *.mht files.
Can anyone plz help me to programatically open *.mht files. Thnaks.
STARTUPINFO sInfo;
memset( &sInfo, 0, sizeof(sInfo) );
sInfo.cb = sizeof(sInfo);
sInfo.dwFlags = STARTF_USESHOWWINDOW;
sInfo.wShowWindow = SW_SHOWMAXIMIZED;
PROCESS_INFORMATION pInfo;
memset( &pInfo, 0, sizeof(pInfo) );
CreateProcess(NULL, _T(Path), NULL, NULL, FALSE, 0, NULL, _T(workDir), &sInfo, &pInfo))