I have a cfexecute w/cffile that generates a text file after executing a DOS 
command.

In the text file I would like to do a search for a string in the txt file for 
an IP for example of 192.12.12.10.

Would I use another instance of cffile?

Thanks as always.

RO
HWW

Code:

<CFTRY>
<cfexecute name = "c:\windows\system32\tracert.exe" arguments="#url.hostname#" 
outputFile = "e:\tracetest2.txt" timeout = "20">
</cfexecute>
<CFCatch type="Any">
<cfoutput>
<font face="Verdana" size="1">
<strong>
<BR><br>
<P>No trace found or timed out checking hostname - check IP setting for this 
user or hostname.
</font>
</cfoutput>
<cfabort>
</P>
</CFCATCH>
</CFTRY> 
<cffile action="read" file="e:\tracetest2.txt" variable="thetrace2">
<pre><cfoutput>#thetrace2#</cfoutput></pre>      


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291324
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to