I just want to know how to be able to take in a small argument like the OLD msdos utils (copy, fdisk, ...) like so:
MyVBapp.exe Hello1
Any Help?
Andy
Printable View
I just want to know how to be able to take in a small argument like the OLD msdos utils (copy, fdisk, ...) like so:
MyVBapp.exe Hello1
Any Help?
Andy
I always do it in the form load part:
Do something like this:
Code:dim cmd$
cmd$ = command
'command is whatever argument you give
if cmd$ = "Hello1" then
'do what you need, like:
txt1.text = "Hello1"
else
'do default for no cmd argument
txt1.text = "No argument entered"
endif
[This message has been edited by TheMadMonk (edited 02-20-2000).]
Oh, and you can test it out from in VB by doing this: (in VB5)
Click Project... Project1 Properties... Make...Command Line Arguments (enter the parameter to test/use here)