Here is my ASP code that runs just fine. How can I do this in CF?

<%
         Dim WshSHell
         set WshShell = CreateObject("WScript.Shell")

         '--Program to run
         Dim strProgram
         strProgram = "c:\programs\runme\test.exe"

         '--read either form or url encoded variables
         Dim strFile
         strFile = Request.Form("file") & Request.QueryString("file")

         WshShell.Run(strProgram & " " & strFile & " ")
%>

Running: <%=strProgram%> &nbsp; <%=strFile%>





+-----------------------------------------------------------------------------------+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+------------------------------------------------------------------------------------+



-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to