From: | Steve Hargreaves |
Date: | 21 Jun 2001 at 20:33:42 |
Subject: | Re: Running external programs |
On 21-Jun-01, Nick Clover said -
>NC cmd$="C:List >nil: c:"+Chr$(10)+"endcli" #Why?#
>NC cli$="con:0/0/0/0/GHelp/AUTO" #Why?#
>NC If WriteFile(0,cli$) #Why?#
>NC Execute_ &cmd$,0,0
>NC CloseFile 0 #Why?#
>NC EndIf #Why?#
>NC If you don't want a CON: window, why are you deliberately opening one
>NC then telling it not to open unless something is output (AUTO option)?
>NC This would do the same thing:
>NC cmd$="C:List >nil: c:" : Execute_ &cmd$,0,0
I was reading CON: to allow me to check for errors if the external program does
something odd or doesn't exist. As it happens, I suppose I could check for
obvious error, such as a missing external before calling Execute_. Obvious,
really. I just didn't think of it :o/
Thanks to those that replied. If nothing else, it has got me thinking a little
differently about how I do things.
Regards
Steve.
ICQ 21361336
----------------------------------------------
Be careful of reading health books, you might die of a misprint.
-- Mark Twain
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie