Hello,

[EMAIL PROTECTED] wrote:
> I have a batch file d:\test.bat which I would like to execute to run
> on the server.
>
> My command is as follows
>
> <cfexecute name="d:\test.bat"
> timeout="10">
> </cfexecute>
>
> This will echo the contents of the file test.bat to the screen rather
> than execute the file.
>
> Am I missing something simple
>   

You need to get the OS Command.exe to run the batch file so try this
<cfset batchfilename = work_dir & "LOGTEST.BAT">
<cfset variousParameters = "lots of parameters with spaces between them">
<cfexecute name="D:\winnt\system32\CMD.EXE" arguments="/C 
#batchfilename# #variousParameters#"></cfexecute>


All the best to everyone for the festive season and the New Year.

Kym K

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to