Try this rick..
<cfexecute
name="c:\winnt\system32\ipconfig.exe"
arguments="/all"
timeout="15" />
If that works then all is well, I think cfexecute may be choking on one or
more of the characters in your arguments string, perhaps the colons or maybe
not.
I seem to remmember reading somewhere about escaping some characters in side
argument strings otherwise cf can treat it as an array instead of a string.
-----Original Message-----
From: Rick Eidson [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 15:06
To: CF-Community
Subject: CFEXECUTE
I have been going nuts with this.
I can not get this to pass the arguments to the exe file.
I have tried the following.
<cfexecute name="c:\winnt\system32\cmd.exe"
arguments="/k c:\telnetscript\tst10.exe /r:script.txt" />
<CFexecute
NAME="c:\telnetscript\tst10.exe"
ARGUMENTS="/r:script.txt /o:output.txt /m"
TIMEOUT="60"/>
And these with the c:\telnetscript\tst10.exe /r:script.txt /o:output.txt /m
inthe file.
<CFexecute
NAME="c:\telnetscript\test.bat"
ARGUMENTS=""
TIMEOUT="60"/>
<CFexecute
NAME="c:\telnetscript\test.com"
ARGUMENTS=""
TIMEOUT="60"/>
<CFexecute
NAME="c:\telnetscript\test.cmd"
ARGUMENTS=""
TIMEOUT="60"/>
It luanches the aplication without the argument.
It suposed to luanch a cmd window telnet to a server send a print command
and close the window. All the telnet commands are in the script.txt file. I
got the telnet exe file from
http://www.er.uqam.ca/merlin/fg591543/tst/index.html
If I type c:\telnetscript\tst10.exe /r:script.txt /o:output.txt /m
at the cmd promt the program runs perfect.
Any help please.
Rick Eidson
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists