次の方法で共有


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

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

使用例

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

参照

処理手順

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

参照

CommandLineArgs

Visual Basic プログラムの構造