Run cmd.exe and pass the batch file to it, see http://www.forta.com/blog/index.cfm/2006/7/31/Using-CFEXECUTE-To-Execute-Com mand-Line-Utilities.
--- Ben -----Original Message----- From: Calvin Trinh [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 1:30 PM To: CF-Talk Subject: Execute a batch file with CFEXECUTE Hello, Is it possible to use CFEXECUTE to excute a batch file? I'm trying to use the CFEXECUTE to execute a batch file i created to copy a file from one location to another. It does not work when I use CFEXECUTE to run batch file. Any assistance will be helpful. thanks Here is my code. <cfexecute name="D:\CreditRpt.bat"></cfexecute> Here is my batch file net use z: \\112.5.6.40\d$ /user:admin pass4u copy D:\cme\cmecredits.txt z:\tmp net use z: /delete ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280827 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4