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
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4