![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

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
This archive was generated by hypermail 2.2.0 : Thu Nov 20 2008 - 03:04:29 PST