[阅读: 352] 2009-04-25 07:44:49
STARTUPINFO si;
ZeroMemory(&si,sizeof(si));
si.dwFlags = STARTF_USESHOWWINDOW;
si.wShowWindow = SW_HIDE;
String cmdLine = ExtractFilePath(Application->ExeName)+"python.exe manage.py runserver";
String CurrentPath = ExtractFilePath(Application->ExeName)+"server";
ChDir(CurrentPath);
CreateProcess(NULL,cmdLine.c_str(),NULL,NULL,0,0,NULL,NULL,&si,&pi);