Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Executing Vb programs from ASP



Hi, Somebody knows how execute a VB application in the server side from a ASP page?.



Thanks


Comments

  • Hey;



    include the following code into an ASP-source:



    <%<br>
    Set Shell = Server.CreateObject("WScript.Shell")

    Shell.Run "C:COMMAND.COM",0,False

    %>



    This Code will execute C:COMMAND.COM on the

    server. If you set the last parameter to

    "True", the execution of the script will stop

    until C:COMMAND.COM is aborted.



    You can run any application following this

    example. For example, the following code will

    popup a MessageBox on the server's screen.



    <%<br>
    Set Shell = Server.CreateObject("WScript.Shell")

    Shell.Popup "Hello world",0,"ASP-Freaks",VBSystemModal+VBOKOnly+VBInformation

    %>





    Have a lot of fun with this examples! It's not hard to let the server hang up by using the RUN-method.


  • Sorry;



    I didn't know that this messageboard automatically excludes code extracts put into ASP-Brackets: <%



    Here's -again- the code:



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

    : Shell.Run "C:COMMAND.COM",0,False





    This Code will execute C:COMMAND.COM on the

    server. If you set the last parameter to

    "True", the execution of the script will stop

    until C:COMMAND.COM is aborted.



    You can run any application following this

    example. For example, the following code will

    popup a MessageBox on the server's screen.



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

    : Shell.Popup "Hello world",0,"ASP-Freaks",VBSystemModal+VBOKOnly+VBInformation





    Have a lot of fun with this examples! It's not hard to let the server hang up by using the RUN-method.



    Bye, PHjL




    URL:http://www.siegmueller.de/db/nummer/talkin

Sign In or Register to comment.