I'm just learning CF and I'm not sure what to do?
Starting an exe with ColdFusionStarting an exe with ColdFusion
Page 1 of 1
1 Replies - 6040 Views - Last Post: 19 October 2005 - 08:42 AM
#1
Starting an exe with ColdFusion
Posted 19 October 2005 - 07:13 AM
I have an application that I created in powerbuilder and I want to use the coldfusion web service to open the application (.exe) every five minutes and then close the application.
I'm just learning CF and I'm not sure what to do?
I'm just learning CF and I'm not sure what to do?
Replies To: Starting an exe with ColdFusion
#2
Re: Starting an exe with ColdFusion
Posted 19 October 2005 - 08:42 AM
Welcome to dream.in.code rainwalker!
As with anything code related, there are a couple ways to accomplish what you are trying to do. I think the best way to run a .exe file every 5 minutes would be to setup a "Scheduled Task" in the ColdFusion Administrator and have it run a .cfm file with a cfexecute tag.
The cfexecute tag will then call your .exe file on the server and run it. Here is the syntax for cfexecute:
For information on the arguments cfexecute uses: http://livedocs.macr...le=00000243.htm
Let us know if that works for you.
As with anything code related, there are a couple ways to accomplish what you are trying to do. I think the best way to run a .exe file every 5 minutes would be to setup a "Scheduled Task" in the ColdFusion Administrator and have it run a .cfm file with a cfexecute tag.
The cfexecute tag will then call your .exe file on the server and run it. Here is the syntax for cfexecute:
<cfexecute name = "C:\WinNT\System32\netstat.exe" arguments = "-e" outputFile = "C:\Temp\output.txt" timeout = "1"> </cfexecute>
For information on the arguments cfexecute uses: http://livedocs.macr...le=00000243.htm
Let us know if that works for you.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|