Add to the top of the bat file

@Echo Off

This will stop commands being displayed..

Then when you want to output some text use Echo again  e.g.

@Echo off

C:\programs\runme.exe filename.txt 45

Echo This text appears on screen


HTH



-----Original Message-----
From: Bushy [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 13:03
To: CF-Talk
Subject: Stripping lines from output


Hi,

I'm creating a batch file and then executing it via <cfexecute. Everything
is working great except for the output to screen.

<cfexecute name="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.bat"
           outputfile="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog"
           timeOut="1000">
</cfexecute>
</ul>

<!--- Read file --->
<cffile action="READ"
        file="#TheFolder#\#LCase(ListGetAt(FileName,1,'.'))#.rlog"
        variable="results"> 

<cfoutput>
                                        <cfset results =
#Replace(results,"-","_","ALL")#>
        
#Replace(results,chr(10),"<br>","ALL")#
</cfoutput>

I get the following:

C:\WINNT\system32>setlocal 

C:\WINNT\system32>d: 

D:\>cd D:\mywork\test\documents\123

D:\mywork\test\documents\123>C:\programs\runme.exe filename.txt 45

Aborted: Unacceptable...
 

What I want is to ignore the first 4 lines in the output to screen and only
display "Aborted: ..."

How would I go about this?






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to