by Dominic R (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 11th May 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
EXE-Passed Parameters - When a program is executed, a line might of been added to the parameter. This code shows you how to find out what it
You can right click on the EXE icon in my computer and create a shortcut. Then change the shortcut parameter, e.g. C:\PROGRAMS\PROJECT1.EXE HELLO or C:\PROGRAMS\PROJECT1.EXE -Game
' 1. Create a new project
' 2. Make a command button on the form
' 3. Copy the following code into the main form
' CODE
Private Sub Form_Load()
Command1.caption = "Click Me!"
If command$ <> " " Then
Msgbox Command$
End If
End Sub
Private sub Command1_Click()
If command$ <> " " Then
Msgbox Command$
End If
End Sub
No comments have been posted about EXE-Passed Parameters - When a program is executed, a line might of been added to the parameter. Th. Why not be the first to post a comment about EXE-Passed Parameters - When a program is executed, a line might of been added to the parameter. Th.