Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I call a EXE from a ASP page...
Message
General information
Forum:
Internet
Category:
Active Server Page
Miscellaneous
Thread ID:
00668066
Message ID:
00668458
Views:
22
>So it can be somting like this in a ASP page?
>
>set oShell = Server.CreateObject("Shell.Application")
>oShell.ShellExecute("c:\MyApp.exe")
>
>
>>>How can I call a .EXE from a ASp Page...
>>
>>You may try the Server.CreateObject("Shell.Application") approach. That should work.

While that will work there's two things to consider: the first, which may be obvious but needs stating, is that this would execute the application on the server, not the client. Second, if the ASP page is being accessed from the Internet anonymously, you will have to grant Execute privileges for the IIS anonymous user account on the EXE file you plan on executing. If your anonymous account is the standard IUSR_, this user account naming convention is well known out there in the hacker world and could potentially allow such a hacker to execute your program outside of your application.

Like I said, just things to consider!
"It is an important and popular fact that things are not always what they seem. For instance, on the planet Earth, man had always assumed that he was more intelligent than dolphins because he had achieved so much -- the wheel, New York, wars and so on -- whilst all the dolphins had ever done was muck about in the water having a good time. But conversely, the dolphins had always believed that they were far more intelligent than man -- for precisely the same reasons." - Douglas Adams
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform