Blitz (92/119)

From:Nick Clover
Date:21 Jun 2001 at 13:38:39
Subject:Re: Running external programs

Hello Steve

On 21-Jun-01, you wrote:

> Hello again,

> OK, I've found a solution on my setup, but I'm not sure if I'm invoking a feature
> of KingCON or if this is a general feature.

> Would someone NOT using any CON: patches (KingCON etc.) please run the attached
> and tell me if it opens a CON: window during execution.

> There should be no output - it's just a test.

> Thanks in advance.

> All the best

cmd$="C:List >nil: c:"+Chr$(10)+"endcli" #Why?#
cli$="con:0/0/0/0/GHelp/AUTO" #Why?#
If WriteFile(0,cli$) #Why?#
Execute_ &cmd$,0,0
CloseFile 0 #Why?#
EndIf #Why?#

If you don't want a CON: window, why are you deliberately opening one
then telling it not to open unless something is output (AUTO option)?

This would do the same thing:

cmd$="C:List >nil: c:" : Execute_ &cmd$,0,0

Here is an extract from a program I wrote to search/Sort/rename/delete mp3 files
(It is available at http://home.snafu.de/dcr/ ) It does nothing
until the executed program has finished. Maybe one of the programs
your calling detatches itself from the cli. That would cause
your program to continue running without the info it needs.

.fastadd
#; code removed#
If path<>""
prt {"Scanning..."}
cmd.s="List "+Chr$($22)+path+Chr$($22)+" p=*.mp(2|3) files all"
cmd+" lformat= "+Chr$(34)+"%P%N"+Chr$(34)+" >T:Playlist_Ed.temp"
Execute_ &cmd,0,0
#; lots of code removed #
EndIf
RTS

BTW. Use JSR / RTS instead of Gosub / Return it gives u smaller faster exe's

Regards






Nick Clover - http://i.am/bauk



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