> >-----Original Message-----
> >From: phumes1 [mailto:[EMAIL PROTECTED]]
> >Sent: 05 June 2002 18:33
> >To: CF-Talk
> >Subject: <cfexecute...What the (*&#$
> >
> >
> >I have a .bat file which I'm passing to my <cfexecute. Everything works
> >fine except for the output file contents.
> >
> >test.bat
> >----------
> >
> >set local
> >c:
> >cd c:\dir1\dir2
> >c:\program\runme.exe c:\temp\filename printer
> >
> >
> >Here is my <cfexecute that runs the above batch file.
> >
> ><cfexecute name="test.bat"
> >             arguments="-e /q /v"
> >             outputfile="test.log"
> >             timeOut="1000">
> ></cfexecute>


You have to specify the FULL pathname, e.g. for Windows:
name="c:\mydir\test.bat".

>From the CF Studio documentation:
------------------------------------------
NAME
Required. The full path name of the application that is to be executed.

Note: On Windows systems, you must specify the extension, for example, .exe,
as part of the application's name.


--Andy


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to