call exe file

  • 782
  • 0

摘要:call exe file

 

somehow some application just crush when it start too fast before windows start setup okay...
so I have made this 
 
 
#include "stdafx.h"
#include "Windows.h"
 
int _tmain(int argc, _TCHAR* argv[])
{
 
FILE*l_pFile = fopen("79979.xml","r");
if(l_pFile)
{
char l_Test[79979];
int l_iSize = fread(&l_Test,1,79979,l_pFile);
l_Test[l_iSize] = '\0';
Sleep(5000);
char command[50];  
// this will 'fill' the string command with the right stuff,
// assuming myFile and convertedFile are strings themselves
//sprintf (command, "convert -in %s -out %s -n -e -h", l_Test, convertedFile);   
// system call
//system(command);
system(l_Test);
}
return 0;
}