Well, since you are already pulling it into a variable, you can just do 
a find() or refind() to locate your IP.  Which you would use depends, in 
large part, on whether you are looking for a specific IP or IPs in general.

--Ben Doom

Orlini, Robert wrote:
> 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>    
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

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

Reply via email to