From Adam Dawes · 1996-03-31 19:41 · #75482 in AMOS_ECHO
Hi scott!
SA>> Try: Execute_ "CD C:",0,0
sb> Kewl That Worked ....... ^^^^^^^^ What's the Zero's For
Input and output streams. You could open a console window and pass its address as either (or both) of these arguments to allow the user to enter data or see the results of the command.
SA>> er.l = SystemTagList_("CD C:",0) ; where er would be the return
SA>> code.
sb> Say What ? .. Confusion )->
SystemTagList() returns the returncode of the executed program (or -1 if the program couldn't be run). In the example above, that value will be put in to the BB variable 'er'.
Btw, you should always use SystemTagList() wherever possible, Execute() is the old pre-KS2 way of doing it, and really isn't very good.. :(
#include <stdio.h>/*Adam Dawes,ad32@brighton.ac.uk,Adam Dawes@2:441/93.5*/
int main(){char d[]="DEICEHIBEAHAJBJBJAJIAEFFHAHJAHJAHJHJIECHAHKGHFGHCGII"
,s[]=" /-)| \\_",*p=d,c;s[5]=10;while (*p){c=*p++^=64;if(c<5)for(;c>0;c--)
putchar(*s);else putchar(*(s+c-4));}return(0);}/*C sig by Adam Dawes '95*/
--- Spot 1.3a #1051
* Origin: The world is going mad but me I'm doing fine! (2:441/93.5)