Command line arguments from background

mjcoon

Well-Known Member
Licensed User
I have no problem with accessing command line arguments via the args() built-in array.

But I can call Google Maps, say, multiple times while it is running in the background and it gets fresh command line arguments (to interpret a different KML file) each time.

With a Basic4PPC program "X.exe" running in the background, performing a Shell("X.exe", "argument") in another program brings it to the foreground, but does not give it a fresh set of command line arguments.

How can I emulate whatever it is that Google Maps is doing?

Mike.
 

agraham

Expert
Licensed User
Longtime User
If by "call Google Maps" you mean using Shell then I guess it must be starting a second instance, posting the args to the first instance and then terminating the second instance.

You can't access this merchanism in a Compact Framework app which only allows a single instance to exist. If you start it using a Process object from my Threading library you can always close and then restart it with another set of args.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…