-
%1 in visual basic
Hello !
I have a batch file called 1.bat and it looks like this:
echo "c:\test.exe" %1 > c:\test.bat
I have configured windows to open html links with 1.bat.
After you press the html link the test.bat file looks like this:
"c:\test.exe" "the html link you pressed"
Is there any way in visual basic to do the same thing ?
(a function in vb that will do what the "%1" does in dos ?)
thanks alot!
-
Command() contains the entire parameter string in VB.
'Show it!
MsgBox Command()
-
-
Command$ is also another way to access it.
Code:
Private Sub Form_Load()
MsgBox Command$
End Sub