Re: call external .exe program

From: Charles Melice <mail_at_forthcad.com>
Date: Fri, 22 Sep 2000 10:37:19 +0200

Hi Viviane,

> In a SF application I am developing
> I should call an external .exe program.
> How can I do this actually?

Here is what I use to call my own web page from
an "AboutBox" dialogbox.

    : OnCommand ( id -- res )
        DUP 101 = IF DROP
            0
            z" open"
            z" http://www.forthcad.com"
            0
            0
            SW_SHOWNORMAL
            ShellExecute drop
            0 EXIT
         THEN
        super OnCommand ;

A simpler way is to use

>SHELL ( addr n -- )

example: s" backup.bat" >SHELL

With best regards from Belgium,
Charles

----- Original Message -----
From: "Viviane Beullens" <Viviane.Beullens_at_swing.be>
To: <sftalk_at_forth.com>
Sent: Friday, September 22, 2000 7:45 AM
Subject: [sftalk] call external .exe program

> Hi Forthers,
>
> In a SF application I am developing
> I should call an external .exe program.
> How can I do this actually?
>
> Thanks by advance,
> Viviane Beullens
>
>
> _______________________________________________
> Sftalk mailing list Sftalk_at_forth.com
> Visit Sftalk on the web at http://www.forthinc.com/mailman/listinfo/sftalk
>
Received on Fri Sep 22 2000 - 01:41:43 PDT


Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 09-Feb-2012. Archive updated nightly.