Skip to main content
Participating Frequently
July 27, 2010
Question

CFExecute issue

  • July 27, 2010
  • 2 replies
  • 718 views

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>

    This topic has been closed for replies.

    2 replies

    Inspiring
    July 27, 2010

    You might try invoking just the script file.

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

    You might also wrap the call to the VB script including any command line arguments inside a batch file.  The call the batch file with CFEXECUTE.

    Inspiring
    July 27, 2010

    The major reason it's not working is that it's not coded the way the manual prescribes.