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
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie