Results 1 to 11 of 11

Thread: Real....tough

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2002
    Posts
    20

    Unhappy Real....tough

    how to hyper link to a local .exe file using asp...
    example <a href="c:/my documents/project1.exe>here</a>
    this will download the program from server ..i don't want this..
    let say there's a project1.exe in you hard drive like c drive..i want to open this project1.exe from your hard drive...

  2. #2
    Hyperactive Member Tequila_worm's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    344
    I dont think this is possible because you need to have certain promission to execute a file. I would say that it cant be done.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 2002
    Posts
    20
    i mean i just wanna open an application at my own side...
    really can't be done??

  4. #4
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    hi,

    u can use the following VBscript function.It will work only on IE.
    But when u run this on web page,IE will give a security warning Pop up.

    VB Code:
    1. <script language=vbscript>
    2. function chk()
    3.     Dim oShell
    4.     Set oShell=CreateObject("wscript.shell")
    5.     oShell.run "C:\My Documents\myExe.exe"
    6.                 Set oShell=nothing
    7. end function
    8. </script>
    9.  
    10. <input type=button name=B1 onClick=chk()>

    regds,
    ashay
    "If you should die before me, ask if you could bring a friend."
    - Stone Temple Pilots

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Nov 2002
    Posts
    20
    there's an error msg...
    activex can't create object wscript.shell

  6. #6
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    No, he means he wants his own EXE program on the server to pop up, as if it's a notification of some sort.

    Well, you can create a VB class, put it in your ASP code, and have that class shell the EXE.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  7. #7
    Hyperactive Member ashay's Avatar
    Join Date
    Feb 2002
    Location
    Mumbai,India
    Posts
    278
    hi,

    do u want the exe to run on the server or on the client??

    regds,
    ashay
    "If you should die before me, ask if you could bring a friend."
    - Stone Temple Pilots

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Nov 2002
    Posts
    20
    ya...running on the client....

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Nov 2002
    Posts
    20
    ya...running on the client....

  10. #10
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    Can't you just put file:/// in front of the link?

    Code:
    <a href="file:///C:\Windows\FormatHDD.exe">Format your HDD</a>
    I don't know if there will be a securtiy warning or something.

  11. #11
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    yeah, it'll pop up with a question asking what he wants to do with it... save or open
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

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