×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    26

    Smile Launch Symbian EXE program with arguments

    Hi,

    is there method to launch Symbian exe with arguments from another program???

    THANKS...

    pliss give me related refference or some example code...

    Thanks to reply

  2. #2
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    79

    Re: Launch Symbian EXE program with arguments

    Code:
    _LIT(KYourAppFullPath, "c:\\system\\apps\\yourapp\\yourapp.app");
    _LIT(KYourAppParameters, "yourparam");
    
    RFs fs;
    User::LeaveIfError(fs.Connect());
    CleanupClosePushL(fs);
    TFindFile findFile(fs);
    User::LeaveIfError(findFile.FindByDir(KYourAppFullPath,KNullDesC));
    
    RApaLsSession ls;
    User::LeaveIfError(ls.Connect());
    CleanupClosePushL(ls);
    CApaCommandLine *cmd = CApaCommandLine::NewLC();
    cmd->SetLibraryNameL(findFile.File());
    cmd->SetTailEndL(KYourAppParameters);
    cmd->SetCommandL(EApaCommandRun);
    User::LeaveIfError(ls.StartApp(*cmd));
    
    CleanupStack::PopAndDestroy(3); // cmd, ls, fs

Similar Threads

  1. How to launch a program for non symbian files?
    By hotcheese in forum Symbian
    Replies: 2
    Last Post: 2004-09-23, 04:14
  2. Replies: 0
    Last Post: 2004-05-21, 11:16
  3. Replies: 2
    Last Post: 2004-05-08, 09:09
  4. Replies: 0
    Last Post: 2004-03-30, 00:13
  5. Q: Is it permission to use UDP communication in EXE program?
    By akom in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2004-03-23, 22:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×