Announcement

Collapse
No announcement yet.

close PbDos program after Run PbCC or PbWin program

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

  • close PbDos program after Run PbCC or PbWin program

    When I run a PbWin program from a PbDos program:
    - if I use EXECUTE the PbDos program remains visible and it is closed when then PbWin program is closed;
    - if I use RUN then PbWin program do not start.
    Can I to resolve this problem?

    I should want that, when my PbDos program calla a PbWin or a PbCC program, the PbDos program is closed.

    ------------------
    [email protected]
    From Italy.

    [This message has been edited by Giuseppe Belziti (edited August 24, 2007).]
    mailto:[email protected]
    From Italy.

  • #2
    You could try...
    Code:
    SHELL "start programname [params]"
    SYSTEM
    I think 'start' returns immediately after programname is launched.

    If that does not work, you could try RUN or EXECUTE of a batch file followed by SYSTEM. You might need to end that batch file with 'EXIT'

    The thing is, the ms-dos program is already running a copy of the command processor, so you might have to start the ms-dos program with "CMD /K ms-dos-programname.exe" to get the command processor used for the dos program to end.

    Some things to try, anyway.

    MCM


    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Thanks Michael for good idea.
      This is the modify that I have done:

      SHELL"CMD /C START programname.EXE"
      END

      now all is OK.

      ------------------
      [email protected]
      From Italy.
      mailto:[email protected]
      From Italy.

      Comment

      Working...
      X