Cool. I was hoping that there were some way of running the ping command and stuffing the screen results into a variable. The CFFile method might be an option, but I'm going to be using this command to loop over a lengthy list (1000 + domains). Might be best to write the BAT file dynamically then have CF run that.
Any ideas? -----Original Message----- From: Peterson, Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 12:27 PM To: CF-Talk Subject: RE: Using CF to run BAT files Use a good old dos trick to 'print' the output to a file Ping www.yahoo.com > c:\pingResult.txt Then use CF to read the file =) Remember, you can even use CFFILE to dynamically write the batch file, then execute it =) Chris -----Original Message----- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 12:14 PM To: CF-Talk Subject: Using CF to run BAT files How would I go about coding a BAT file, that could then be run by Coldfusion; and how would I get the results of the bat file back into CF? For example, if I wrote a simple BAT file which would ping a domain. Run directly in a DOS prompt, I'd type: ping andyandjaime.com and it would run. But I typed the same thing into a text file, saved it as ping.bat, double clicked it and the command prompt window opened and it's looping endlessly over the words "ping andyandjaime.com". Any clues? ____________________________________ Andy Matthews Senior Coldfusion Developer Office: 877.707.5467 x747 Direct: 615.627.9747 Fax: 615.467.6249 [EMAIL PROTECTED] www.dealerskins.com <http://www.dealerskins.com/> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267521 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

