Command line arguments ???

E

Empi

Hi,

Sorry for the silly question.

Is there a way to pass command line arguments to a PDA application without
using a software for it?

i.e. simply create a shortcut to an application and set passwd arguments?

Looks so simple, but I've found no way of doing it on my 2190 iPaq.


Thanks,


Empi
 
G

Guest

I don't really understand the question.

PAssing arguments is simple and no different than the desktop. For example:

MyApp.exe MyParameter

You can do that in a shortcut by adding the parameters to the shortcut fiile
itself. So in this case the .lnk file contents would look like this:

21#MyApp.exe MyParameter

Obviously the app has to be written to accept command-line parameters.

The other challenge is that often PPC apps never shut down. Clicking the
shortcut when the app is already running will get the existing app to come
to the fore, but won't give it the command-line args. That's far more
complex, as it requires a platform hack and IPC.
 
E

Empi

Thank you, but - much more simple than that.
I don't manage to create a shortcut with arguments...
Don't have the option in propertires of a shortcut, and found no way of
adding them...


thanks.

Empi
 
E

Empi

Ok,

Got it.
Thanks.

Just in case anyone else need it:
The steps are:
1) Create a file using notepad (on your desktop computer).
2) In this file, write the following:
nn#AppToRun Argument(s)
where nn is the number of characters after the #.
3) save this file with .lnk extension.
4) copy it to the PDA.
5) use it...

Here is a sample:

41#"\Program Files\MyApp\MyApp.exe" arg1,arg2

Good luck.

Empi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top