Pass parameters to a PPC VB .NET app

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm launching my Pocket PC VB .NET application that sits on the device from
my computer using CeCreateProcess RAPI API. Is it possible to pass parameters
to it? How would I do that and how would the application extract them?

Thank you.
 
The second parameter for CeCreateProcess is a command line. So it could
be used to pass parameters to application:

CeCreateProcess("\your app", "parameter1 parameter2" ...);

then in the VB.NET application:

Public Shared Sub Main(ByVal args() as String)
' args(0) -- the first parameter
' args(1) -- the second
End Sub


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Thank you very much Sergey!

Sergey Bogdanov said:
The second parameter for CeCreateProcess is a command line. So it could
be used to pass parameters to application:

CeCreateProcess("\your app", "parameter1 parameter2" ...);

then in the VB.NET application:

Public Shared Sub Main(ByVal args() as String)
' args(0) -- the first parameter
' args(1) -- the second
End Sub


Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Back
Top