Ah...that makes perfect sense. Thanks Dave. And I knew about cfexecute...I was just trying to figure out about the BAT files first.
-----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 11:39 AM To: CF-Talk Subject: RE: 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? You would use the CFEXECUTE tag. > 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". In this case, you're running into a slightly odd problem. You named your batch file ping.bat, and presumably when you double-click it, it's looking for a command called "ping" and finding itself. You might want to rename your batch file so that it doesn't have the same name as any shell commands or executables within your path. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:267511 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

