|
-
Nov 19th, 2002, 12:15 AM
#1
Thread Starter
Junior Member
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...
-
Nov 19th, 2002, 12:17 AM
#2
Hyperactive Member
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.
-
Nov 19th, 2002, 12:22 AM
#3
Thread Starter
Junior Member
i mean i just wanna open an application at my own side...
really can't be done??
-
Nov 19th, 2002, 01:27 AM
#4
Hyperactive Member
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:
<script language=vbscript>
function chk()
Dim oShell
Set oShell=CreateObject("wscript.shell")
oShell.run "C:\My Documents\myExe.exe"
Set oShell=nothing
end function
</script>
<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
-
Nov 19th, 2002, 08:50 PM
#5
Thread Starter
Junior Member
there's an error msg...
activex can't create object wscript.shell
-
Nov 20th, 2002, 12:02 AM
#6
Good Ol' Platypus
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)
-
Nov 20th, 2002, 12:50 AM
#7
Hyperactive Member
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
-
Nov 20th, 2002, 02:37 AM
#8
Thread Starter
Junior Member
ya...running on the client....
-
Nov 20th, 2002, 02:47 AM
#9
Thread Starter
Junior Member
ya...running on the client....
-
Nov 20th, 2002, 06:17 AM
#10
Frenzied Member
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.
-
Nov 20th, 2002, 06:42 AM
#11
Fanatic Member
yeah, it'll pop up with a question asking what he wants to do with it... save or open
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|