Chain from one program to another

Discussion in 'Questions (Windows Mobile)' started by horatio, Oct 26, 2007.

  1. horatio

    horatio Member

    Is it possible to run one program to start or select a process for instance, and then link to a second program to perform a task based on the results of the first program.

    I remember doing this in BBC BASIC years ago and found it useful when writing long, involved programs.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can use the Shell keyword to launch any application you need.
     
  3. agraham

    agraham Expert Licensed User

    You can "Shell" another program passing arguments to it and access those arguments in B4PPC with the special predefined args() global array.

    See
    MainHelp->Help->Keywords->General
    and
    MainHelp->Help->Basics->Command line arguments
     
  4. bdiscount

    bdiscount Active Member Licensed User

    agraham:
    "You can "Shell" another program passing arguments to it and access those arguments in B4PPC with the special predefined args() global array"

    Can you shell to B4ppc with an Arg(Prog. Name)?
    :sign0163:
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    No. You will need to compile your application first.
     
  6. agraham

    agraham Expert Licensed User

    Sorry but I don't understand. Do you want to open the Devlopment environment with a certain source file in it or do you want to run a compiled B4PPC app and pass a string to it. If the latter then yes.

    Shell("Notepad","c:\temp\file.txt")
     
  7. bdiscount

    bdiscount Active Member Licensed User

    b4ppc myprog.sbp
    I want to be able to associate b4ppc with the sbp source.
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    Maybe it will be added to the next version.
     
  9. Cableguy

    Cableguy Expert Licensed User

    This would enable file association in the device, wich is on wishlist for some time...
     
Loading...