string strProcessTmp = pResult;
int offset = (int)strProcessTmp.find_last_of(0x0A);
if ( offset > -1 )
{
pResult[offset] = 0x00;
strProcessTmp = strProcessTmp.substr(0, offset);
if ( !feof(pProcessFile) )
{
fseek(pProcessFile, (long)(strProcessTmp.length()+1-sizeof(pResult)), SEEK_CUR);
}
if ( 0x0A == pResult[0] ) //首行只有一个字符 0x0A
{
strProcessTmp = pResult+1;
}
else
{
strProcessTmp = pResult;
}
offset = (int)strProcessTmp.find_first_of(' ');
if ( offset > -1 )
{
{
{
{
{
strProcessTmp = strProcessTmp.substr(0, offset);
{
//查找成功,结束
strResult += "[" + strProcessTmp + "]";
bSuc = true;
}
continue;
}
}
}
}
}
}
}
fclose(pProcessFile);
}
sprintf(pResult, "cmd /c del %s", pProcessFilePath);
WinExec(pResult, SW_HIDE);
if(bSuc){ continue; }
}
}
}
}
}
}
fclose(pPortFile);
}
if(!