Announcement

Collapse
No announcement yet.

Run & Command$

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Run & Command$

    P1.exe & P2.exe run just fine. I want P1 to run P2 and
    pass along 'Hello' to P2.

    P1 contains line of code
    RUN "P2 Hello" 'appears that P1 executes just fine

    P2 contains line of code
    s$ = COMMAND$
    PRINT s$

    PB 3.5 for DOS does like this at all.
    Error 58 File Already Exists-don't understand

    From START, RUN
    P2 Hello 'works just fine


    Suggestions or a gentle push in right direction is most welcome.
    What would I do without this forum?

    Thanks Jack



    ------------------

  • #2
    Try EXECUTE instead of RUN and see what happens. I think RUN 'shares' the runtime and that might be the source of conflicts.
    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Works like a charm.
      Thank You-Let this forum live forever.

      Jack


      ------------------

      Comment

      Working...
      X