[ALLY] Re: /System
From: al:bri:xtra at: 28-Oct-2000 9:09
pekr wrote:
> Then there's another solution - let's implement some "standard" C based
app (gate), listening to rebol on one side, launching commands on the other
side. IIRC such solution was provided some year or more ago on rebol ml.
> Launching of external apps is matter of one or few lines of code in Delphi
e.g., or not?
You could try this (which works for me):
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <dos.h>
int main() {
FILE *pF;
while (!0) {
if (pF = fopen ("Command.bat", "rt")) {
fclose (pF);
system ("Command.bat");
system ("erase Command.bat");
}
_sleep (1);
}
return 0;
}
// End.
I hope that helps!
Andrew Martin
ICQ: 26227169
http://members.nbci.com/AndrewMartin/