Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I call a EXE from a ASP page...
Message
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Divers
Thread ID:
00668066
Message ID:
00668458
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform