Link to home
Start Free TrialLog in
Avatar of Parvez_Siddiqui
Parvez_Siddiqui

asked on

want to call exe file from asp

hi everybody, I want to call exe file form asp which is a standard visual basic project file. I m writing the following code to access.

dim shell,shell1

Set shell = Server.CreateObject("WScript.Shell")

shell1=shell.Run ("c:\Inetpub\wwwroot\Project2.exe",6,True)
set wshell = nothing                  

and I m getting the error (0x80070002) . Can anyone solve this problem.

Many Thanks
ASKER CERTIFIED SOLUTION
Avatar of -DJL-
-DJL-

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Parvez_Siddiqui
Parvez_Siddiqui

ASKER

Hi DJL,
          Sorry i was trying the .exe file...actually it is project2.vbp. I rectified it and tried to run that code which is
Set shell = Server.CreateObject("WScript.Shell")

shell1=shell.Run ("c:\Inetpub\wwwroot\Project2.vbp",6,True)
set wshell = nothing                  
its just hanging up...not showing anything.

Let me tell you one thing, I read one of the suggestions given in the calling .vbs from asp.
It says that you should  not have an interface in that ,  I have one form and it has cmd button when u click its gives the ans and actually my coding is placed in the cmd1_click () procedure.

when I call this project2.vbp file...its just hang up. I tried all the possible soltuions given in one question...but still doesnt work. I tried the above same code and its hanged up

Then i replaced that code with
Server.Execute("c:\Inetpub\wwwroot\Project.vbp")
it gives me error

Server object, ASP 0231 (0x80004005)
Invalid URL form or fully-qualified absolute URL was used. Use relative URLs.
/mypage.asp, line 17

And again i tried the solution : sayng like go to website properties-> home directory-> application protection and change from medium to low. But in my case it was already on low .then too the error is coming.

can u plz suggest something

Hi DJL, I solved the interface problem.. Now it just an executable file . with no forms. but still the problems persists.