Click to See Complete Forum and Search --> : Command-line arguments


Jian Sun
June 28th, 2001, 03:22 PM
I want to pass some arguments to my program when I launch it. Is there any way to do it?

Iouri
June 28th, 2001, 03:39 PM
Start your vb exe vile like

Myprog.exe Param1


In Myprog you can read it with Command$ function

dim s as string

s= Command$

msgbox s '-> will give the result Param1

Iouri Boutchkine
iouri@hotsheet.com