摘要: Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; //設定程序名 p.StartInfo.Arguments = "/c " command; //設定程式執行參數 p.StartInfo.UseShellExecute = false; //關閉Shell的使用 p.StartInfo.RedirectStandardIn... 阅读全文
posted @ 2007-09-06 16:02 ahuo 阅读(1219) 评论(0) 推荐(0) 编辑
摘要: BOOL WriteConsole( HANDLE hConsoleOutput, const VOID* lpBuffer, DWORD nNumberOfCharsToWrite, LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved ); Parameters hConsoleOutput [in] Handle to th... 阅读全文
posted @ 2007-09-06 10:40 ahuo 阅读(2842) 评论(0) 推荐(0) 编辑