Application parameters

  • Thread starter Thread starter Jacek
  • Start date Start date
J

Jacek

Hello

I'd like to run my CF VB.NET application passing
parameters when creating process i.e. "myapp.exe type1"
and then detect this param and handle. How can I read this
parameter using CF classes?

Thanks

Jacek
 
You can pass in string parameters, simply modify your Main method to accept
a string array and parse as you wish.

-Chris
 
Public Shared Sub Main(sArray() as string)
......
End Sub

Easy and works :-)

Thanks once again
 
Back
Top