Skip to main content
Known Participant
August 26, 2008
Question

VBSCRIPT calling

  • August 26, 2008
  • 2 replies
  • 305 views

Is it possible to call VBScript function through CFM pages ?


ThePolarExpress
    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    August 27, 2008
    Just seen your other thread. To run the script at server side, I would do as Dan, and use cfexecute. Something along the lines of

    <cfexecute name = "C:\WinNT\System32\cscript.exe"
    arguments = "/nologo C:\ColdFusion8\wwwroot\website\listFiles.vbs c:\*.*"
    outputFile = "C:\Temp\output.txt"
    timeout = "5">
    </cfexecute>

    BKBK
    Community Expert
    Community Expert
    August 27, 2008
    Either will do.

    <script type="text/vbscript" src="url_to_script_file"></script>

    <script type="text/vbscript">
    // script code
    </script>