Starting an exe with ColdFusion

Starting an exe with ColdFusion

Page 1 of 1

1 Replies - 6886 Views - Last Post: 19 October 2005 - 08:42 AM Rate Topic: -----

#1 rainwalker  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 19-October 05

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? :huh:
Is This A Good Question/Topic? 0
  • +

Replies To: Starting an exe with ColdFusion

#2 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1876
  • View blog
  • Posts: 20,284
  • Joined: 17-March 01

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:
<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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1