Blitz (109/218)

From:Nick Clover
Date:18 Aug 2001 at 12:49:56
Subject:Re: Need help launching external programs!

Hello David

On 18-Aug-01, you wrote:

> David McMinn wrote about Need help launching external programs!:

>>> RKRM lists these as {input, output}, both BPTR. What possible use
>>> are these?
>>
>> They're the input and output file handles for the program. For example,
>> you could open up a new shell window for the program you are going to
>> execute, you would then pass the file handle for that shell window to the
>> Execute_ command.

> Hmm, i might need to look into this. Normally i can just
> double click the icon & it'll start [the icon is selected to start
> from shell], automagically opening a shell window. So i'll need to
> do this manually in using the execute_ command? The execute_ alone
> produces no visible results...

Try something like this:

cmd.s="C:DMS write "+filename2+" TO "+disk+":"+Chr$(10)+"wait 2"+Chr$(10)+"Endcli"
cli$="con:0/0/640/200/VF2000 - UnDMS/CLOSE"
If WriteFile(0,cli$)
Execute_ &cmd,Peek.l(Addr File(0)),0
CloseFile 0
changed=True
EndIf

Regards






Nick Clover



A4000/060, 64Mb, PicassoIV, Paloma, KTX 17" Monitor, Punchinello II

IDE: 10.1 & 13.8 Gb HD, SCSI: Fujitsu 18Gb HD, Sony CDU625-S CD

2x Sony CDD2600 CDR, Aiwa ACD300, Ricoh 8x8x32 CDrw

Brother HL1250 Laser, HP890c Inkjet, Generic V90 Modem, Trust Ergo Keyboard


---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie