-
Hey guys
Please help me
I need to create an exe in VB. exe should be executed at command line prompt and should accept arguments and it in the program. So How can i specify command line arguments and how can i use it in the program.
I thank you if you send me a code samle.
Thanks and regards
Madhu
-
You read the whole command line with all parameters with Command$ function in vb. To split it up in parameters you can use split function
Code:
For each n in split(Command$)
select case n
case "-min"
windowstate=vbminimized
case "-max"
windowstate=vbmaximized
end select
next n