#include #include #include "ScriptParser.h" VOID WaitAutoShutDown( int nCloseTime ) { printf( "AutoClose After %d Seconds", nCloseTime/1000 ); Sleep( nCloseTime ); } void main() { ScriptParser parser; if( !parser.Load( "ServerStarter.ini" ) ) { printf( "ServerStarter.ini Load Fail\n" ); WaitAutoShutDown( parser.GetShutDownTime() ); return; } else { if( !parser.CopyFiles() ) { WaitAutoShutDown( parser.GetShutDownTime() ); return; } } parser.StartServer(); WaitAutoShutDown( parser.GetShutDownTime() ); return; }