HOW TO:存取命令列引數 (Visual Basic)

更新:2007 年 11 月

下列程式碼範例會對應用程式的命令列引數執行迴圈 (Loop)。

範例

For Each argument As String In My.Application.CommandLineArgs
    ' Add code here to use the argument.
Next

請參閱

工作

HOW TO:啟用 Window Form 應用程式的批次模式

參考

My.Application.CommandLineArgs 屬性

Visual Basic 程式的結構