Get the arguments from a command line in vb.net

后端 未结 3 1803
轮回少年
轮回少年 2021-01-15 09:50

Is it possible to return the arguments from the processPath in this example?
This might make more sense, sorry.

Dim processName As String

D         


        
3条回答
  •  深忆病人
    2021-01-15 10:38

    Another option

    Sub WhatEver()
        Dim strArg() as string
        strArg = Command().Split(" ")
        ' strArg(0) is first argument and so on
        '
        '
    End Sub
    

提交回复
热议问题