Results 1 to 6 of 6

Thread: how to open an aplication from the browser

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156

    Unhappy

    hi,

    i would like to know how to open an application on the
    client side ,but not on his browser !!!

    i know that it is possible with the WScript object
    but i dont know how exactly.

    pls hlp
    tnx
    lirlir
    The MORE I get to know,
    I realize that I know NOTHING !

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    For the most part, you can't because of security implications.

    Josh
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2000
    Posts
    156
    tnx, but...

    it is possible with the wscript.shell object or
    with each program's object ,for eg. if i want to execute
    MS-Word i need to create word.application object....


    have a nice day

    lirlir
    The MORE I get to know,
    I realize that I know NOTHING !

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Code:
    <script language="vbscript">
    Set WshShell = CreateObject("WScript.Shell") 
    Sub runlink_onClick()
      WshShell.Run "c:\\WINNT\\Notepad.exe c:\\x.txt", 1, 0
     End Sub
    </script>
    
    <a name="runlink">Run</a>
    Mark
    -------------------

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    I glad IE gives a warning, but you still shouldn't be able to do that. What the heck is MS thinking?

    Code:
    <script language="vbscript">
    Set WshShell = CreateObject("WScript.Shell") 
    Sub runlink_onClick()
      WshShell.Run "net send * Stupid", 1, 0
     End Sub
    </script>
    
    <a name="runlink">Run</a>
    Josh
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6
    Addicted Member pardede's Avatar
    Join Date
    Jan 2000
    Posts
    232
    is there any way to be able to do this in a more subtile way?

    can i encapsulate this sub in other sub so that the user only get a warning when it actually click on "Run"?

    is there a way to make this also work in Netscape?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width