C# 取得命令列參數 by Defence Minister 2008-08-29 string[] args = Environment.GetCommandLineArgs(); foreach(string arg in args) { // do something }