G
Hallo nochmal danke konnte das Problem durch austauschen von strcat in strcpy lösen:
do
{
timeout = GetPrivateProfileInt( "Service", "timeout",DEFAULTVALUE_MATCHES, inipath );
GetPrivateProfileString("Service","file", NULL, batchpath, sizeof(batchpath), inipath );
strcpy(execmd,"/c ");
strcat(execmd,batchpath);
ShellExecute(NULL, "open", "cmd.exe", execmd, NULL, SW_HIDE);
}
while ( WaitForSingleObject( stopServiceEvent, timeout ) == WAIT_TIMEOUT );