次のコード例は、アプリケーションの各コマンド ライン引数をループします。
使用例
For Each argument As String In My.Application.CommandLineArgs
' Add code here to use the argument.
Next
参照
処理手順
方法: Windows フォーム アプリケーションのバッチ モードを有効にする (Visual Basic)
このブラウザーはサポートされなくなりました。
Microsoft Edge にアップグレードすると、最新の機能、セキュリティ更新プログラム、およびテクニカル サポートを利用できます。
次のコード例は、アプリケーションの各コマンド ライン引数をループします。
For Each argument As String In My.Application.CommandLineArgs
' Add code here to use the argument.
Next
方法: Windows フォーム アプリケーションのバッチ モードを有効にする (Visual Basic)