The code below shows starting an exe from other application.
A handle to a process.
RProcess server;
Starts a new process, loading the specified executable.
server.Create(KServerName, KNullDesC);
Create an empty command line object.
CApaCommandLine* ApacommandLine = CApaCommandLine::NewL();
Sets the executable name from the specified descriptor
ApacommandLine->SetExecutableNameL(KExecutableName);
Important : Assigns a command line to a process (EKA2 only).
This replaces the EKA1 method which involved retrieving the
full command line ( using CApaCommandLine::FullCommandLine() ) and
passing it to the process (or thread on the emulator).
ApacommandLine->SetProcessEnvironmentL(server);
RApaLsSession Session;
Session.Connect();
Session.StartApp(*ApacommandLine);
Session.Close();
delete ApacommandLine;
No related wiki articles found