RAPI Shell

linum

Active Member
Licensed User
Can I invoke RAPI to launch my application?

Example:

Code:
rapi.DeviceShell("myapp", "\Program Files\myapp\myapp.exe")

My program goes crazy when I try that code on my app. Am I typing it wrong, or is it not possible to invoke a custom made app?


Thank you...
 
I have a desktop app and a Handheld app and I want to be able to click on a button (on my desktop app) that will automatically start my handheld app, that's why I'm using that code but obviously I don't understand the syntax.

So, if I want to launch the app, can I leave the first argument blank? Like:

Code:
rapi.DeviceShell("","\Program Files\myapp.exe")


Or is it the other way around?:


Code:
rapi.DeviceShell("\Program Files\myapp.exe","")
 
Ok, I'm using:

Code:
rapi.DeviceShell("\Program Files\myapp\myapp.exe", "")

The device shows the wait cursor, like if it was trying to open the program but then the device kicks out an error:

An error occurred on sub__main_app_start.

I don't know why it wont open the app. I don't want to send any arguments. I just want to start the app remotely.


Thanks for any help you can give me...
 
I don't know what happened but when I tried it right now to write down the complete error description it worked perfectly.

I'll keep messing around with different instances to see if it's something else that kicks that error.


Thank you for your help...
 
Back
Top