Announcement

Collapse
No announcement yet.

close PbDos program after Run PbCC or PbWin program

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

  • Giuseppe Belziti
    replied
    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.

    Leave a comment:


  • Michael Mattias
    replied
    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


    Leave a comment:


  • 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).]
Working...
X