EasyCFM.COM Forum / Coding Help! / CFExecute issue

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: CFExecute issue

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

kensington
07-26-2010 @ 8:35 PM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Junior Member
Posts: 93
Joined: Jul 2005

I am attempting to run a Visual Basic Script on our ColdFusion 8 server and it doesnt work.

My VBScript copies a Powerpoint into a JPEG and successfully works when I run it locally from command line where it takes my local Powerpoint slide and creates a local JPEG in my test directory.  I would like to do the same using ColdFusion on our server.

Script.vbs is located in the same directory (C:\DirectoryOne) as the Powerpoint that I want to copy into a JPEG.

Please advise why it not working on the server?

<cfexecute name="C:\Windows\system32\cscript.exe"   arguments="C:\DirectoryOne\Script.vbs -c" timeout="30"> </cfexecute>


Webmaster
07-27-2010 @ 11:16 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Administrator
Posts: 4421
Joined: Jan 2002

I would add an additional step in there...

<cffile action="write" file="#expandPath('/temp.bat')#" output="C:\Windows\system32\cscript.exe C:\DirectoryOne\Script.vbs -c" />

<cfexecute name="#expandPath('/temp.bat')#" timeout="30"> </cfexecute>

by writting it to a bat file you can troubleshoot a little easier; you also can run manually once the file is written and test that out.

Pablo Varando
Senior Application Architect
EasyCFM.COM, LLC.

904.483.1457 \\ mobile
webmaster@easycfm.com \\email

\m/ (>.<) \m/
--- rock on ---

This message was edited by Webmaster on 7-27-10 @ 11:30 AM




Copyright © 2002 - 2009. EasyCFM.COM, LLC.
Powered by < CF FORUM > v.2.0
 
Download the EasyCFM.COM Browser Toolbar!