Guest sree_mig Posted October 19, 2005 Share Posted October 19, 2005 I need to call an exe file from an asp page and i used the following script.But it is showing errors.I was trying to execute the exe file in the local host.<%Dim ToRun_Prog_SCmd, ExecRunCmd Set ToRun_Prog_SCmd = Server.CreateObject("WScript.Shell")'ToRun_Prog_SCmd.Run ("D:\calling\fabmsgsnd.exe;"),1,false 'ExecRunCmd = ToRun_Prog_SCmd.Run ("http://webserver/myfolder/MyEXEProg.EXE /CC /RJ7H1JHHJHAZNXZNN /T1212;", 6, True)ToRun_Prog_SCmd.Run = ToRun_Prog_SCmd.Run "D:\calling\fabmsgsnd.exe",1,false Set ToRun_Prog_SCmd = Nothing%>Can any one tell me how to run an exe file from an asp page in the local host for example say to open a coman prompt.exe or notepad.exeThanks in advance and waiting for the reply from u guys. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now