方法 : コマンド ライン引数にアクセスする (Visual Basic)

更新 : 2007 年 11 月

次のコード例は、アプリケーションの各コマンド ライン引数をループします。

使用例

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

参照

処理手順

方法 : Windows フォーム アプリケーションのバッチ モードを有効にする

参照

My.Application.CommandLineArgs プロパティ

Visual Basic プログラムの構造