一个vb写出来的exe程序,在cmd调用的时候如何添加参数运行?
2个回答
展开全部
应该是Command$
例子:
Private Sub Form_Load()
If Command$ = "" Then
Msgbox "Command$参数是空的"
Else
Msgbox "Command$参数是:" & vbNewLine & Command$
End If
End Sub
看VB的解释
Function Command$() As String
Member of VBA.Interaction
Returns the argument portion of the command line
例子:
Private Sub Form_Load()
If Command$ = "" Then
Msgbox "Command$参数是空的"
Else
Msgbox "Command$参数是:" & vbNewLine & Command$
End If
End Sub
看VB的解释
Function Command$() As String
Member of VBA.Interaction
Returns the argument portion of the command line
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询