Put it in a .bat file and run the .bat.
-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Friday, October 08, 2004 8:34 AM
To: CF-Talk
Subject: RE: cfexecute cmd.exe
Nothing seems to work....either this:
<cfexecute name="C:\Windows\System32\cmd.exe" arguments="DIR c:\"
variable="foo">
<cfdump var="#foo#">
</cfexecute>
Or
<cfexecute name="C:\Windows\System32\cmd.exe" arguments="DIR c:\"
outputfile="c:\foo.txt">
<cfdump var="#foo#">
</cfexecute>
Yields any results..?
_____
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: 08 October 2004 13:24
To: CF-Talk
Subject: RE: cfexecute cmd.exe
> Anyone managed to successfully run a DIR or any command from
> cmd.exe via cfexecute on MX? I can run the page but it just
> returns a blank page and /or file depending if I choose a
> variable or output to file.
I've done that successfully. However, oddly enough, yesterday one of our
clients had a problem with a CFEXECUTE command that was running a Windows
Script Host file as you would from the command line, and simply rebooting
the server fixed it.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- cfexecute cmd.exe Robertson-Ravo, Neil (RX)
- Re: cfexecute cmd.exe Jochem van Dieten
- RE: cfexecute cmd.exe Dave Watts
- RE: cfexecute cmd.exe Robertson-Ravo, Neil (RX)
- Re: cfexecute cmd.exe Jochem van Dieten
- Mark A Kruger