56 users online (2 members and 54 guests)  




  Results 1 to 11 of 11
Digg button stumble

Related

  1. Replies: 5
  2. how to open save/open dialog using HTML    Forum: HTML Forum
    Replies: 1
  3. Open A Directory With A Link    Forum: HTML Forum
    Replies: 5
  4. Link in web page won't open    Forum: HTML Forum
    Replies: 8
  1. #1
    fitzal's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2006
    Posts
    3

    Exclamation Open Program from HTML Link

    Hi. I would like to put a link in an HTML page that will open up Solitaire (%SystemRoot%\system32\sol.exe). What would the code be?

    Thank You!



  • #2
    Kirtie's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2006
    Location
    Fargo, ND USA
    Posts
    6

    Re: Open Program from HTML Link

    Hello-
    So far as I know, any link to an executable (.exe) file will result in the browser thinking you want to download it.

  • #3
    DeadMeatGF's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    382

    Re: Open Program from HTML Link

    Quote Originally Posted by fitzal
    Hi. I would like to put a link in an HTML page that will open up Solitaire (%SystemRoot%\system32\sol.exe). What would the code be?

    Thank You!
    You could try
    Code:
    file://%SystemRoot%/system32/sol.exe
    No idea if it'll work, though.

  • #4
    fitzal's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2006
    Posts
    3

    Re: Open Program from HTML Link

    [quote=DeadMeatGF]
    Code:
    file://%SystemRoot%/system32/sol.exe
    Nope. No Dice. Thanks, though!

  • #5
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,441

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Open Program from HTML Link

    Not possible without client side input. For security purposes (duh) the user will get the prompt asking to "save" or "run"

    D
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  • #6
    fitzal's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2006
    Posts
    3

    Re: Open Program from HTML Link

    Thank You!

  • #7
    Vendor-Lock's Avatar
    New User

    Status
    Offline
    Join Date
    May 2010
    Location
    Sooke BC
    Posts
    4

    Re: Open Program from HTML Link

    hey man,

    sure it can be done !

    use a VB script.

    they're easy to write, and you can
    have the script open the program for you,
    and have the script triggered by an HTML link.

    just google for millions of examples.

    cheers
    Jeff Noyes
    Vendor-Lock

  • #8
    Vendor-Lock's Avatar
    New User

    Status
    Offline
    Join Date
    May 2010
    Location
    Sooke BC
    Posts
    4

    Re: Open Program from HTML Link

    use this in your VBScript

    Code:
    strProgramPath = "C:\Windows\system32\calc.exe"
    
    set objShell = createobject("Wscript.Shell")
    
    objShell.Run strProgramPath
    cheers

    Jeff Noyes

    Vendor-Lock

  • #9
    Vendor-Lock's Avatar
    New User

    Status
    Offline
    Join Date
    May 2010
    Location
    Sooke BC
    Posts
    4

    Re: Open Program from HTML Link

    or even more simple,

    if you know where the program is on the computer,

    you can use a full URL to the hard-drive.

    like this:

    Code:
    <html>
    <head>
    <title>Your Document</title>
    </head>
    <body>
    <a href="C:\Program Files\Lavasoft\Ad-Aware\Ad-Aware.exe">Run Ad-Aware Click Here</a>
    </body>
    </html>
    You will still get the " run or save " window first.
    but you can give instructions on the webpage to " click run "


    cheers
    Jeff Noyes
    Vendor-Lock

  • #10
    Vendor-Lock's Avatar
    New User

    Status
    Offline
    Join Date
    May 2010
    Location
    Sooke BC
    Posts
    4

    Re: Open Program from HTML Link

    The VBScript will open the program without the " run or save " window.


    cheers

    Jeff Noyes

    Vendor-Lock

  • #11
    jeremylesmana's Avatar
    New User

    Status
    Offline
    Join Date
    Jul 2010
    Posts
    1

    Re: Open Program from HTML Link

    Quote Originally Posted by Vendor-Lock View Post
    use this in your VBScript

    Code:
    strProgramPath = "C:\Windows\system32\calc.exe"
    
    set objShell = createobject("Wscript.Shell")
    
    objShell.Run strProgramPath
    cheers

    Jeff Noyes

    Vendor-Lock
    this work too :
    Code:
    Shell "C:\Documents and Settings\Jeremy\Desktop\lala.bat"
    for VB6.0



  • Tags for this Thread

    Posting Permissions

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