PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Command Line Arguments?

Is there a way to pass command line arguments to my Pocket PC application?

When I run my program, I would like to pass information to it, such as which data files to load, whether or not to display debug information, etc.

How do I do this?
Google + "pocket pc command line arguments" + 8th answer + 1 click = <a href="http://www.pocketpcdn.com/articles/run.html">this</a>
mlepage · 03 Aug 2003, 15:55 UTC — Doesn't work
That certainly is an arcane series of actions to get to a built-in run dialog. It doesn't seem to work on my iPAQ 3970 anyways.

I think I will just rely on the tried and true method of reading options from a configuration file at startup time.
Resco supports this, and there's a mess of tools that can do command line parameters.
IIRC PocketQuake supports command line parameters, so Dan should know.
You can always use shortcuts, or one of the freeware / commercial shells floating around, to pass arguments to a program.

Dan East
Not to get OT, but would it be possible to write a replacement shell, bypassing the PPC shell completly? Like GeoShellX, and so forth.
Sm!rk · 06 Aug 2003, 08:37 UTC — Command Line Arguments?
mlepage wrote:
Is there a way to pass command line arguments to my Pocket PC application?

How do I do this?


The best method I have used is to just put them in a shortcut, for instance make a text file with 21#"program.exe" "debug" and then save that as .lnk and copy it to the pda.