Trouble with the anchor tag

Hi there,<br />
I want to build an 'admin page' that will be stored locally in HTML.<br />
The page will be used to run executable files that I have built to automate various tasks, ie send out whitepaper to people who have requested it on our online form,etc<br />
<br />
Here is the problem I want to get around.<br />
(excel is only being used as an example)<br />
<br />
When I use ahref=http://www.htmlforums.com/archive/index.php/"file:///C:/Program Files/Microsoft Office/Office/excel.exe" I get a dialogue box appear asking if I want to save or open the application.<br />
<br />
How can I use the anchor tag so I wont get the dialogue box when I click on the link.<br />
<br />
Thanks<br />
<br />
Greg<!--content-->I don't think you can't get rid of the dialog box. I'm pretty sure it's something on the user end. Someone correct me if I'm wrong on this.<!--content-->you cant-- that is, you can't link to an EXE with an anchor tag without having the Download <!--more--> box pop up.<br />
<br />
<br />
you could write the program in ASP and put it on your site, however.<!--content-->yea dude sry but you cant make applications like .exe files open with an anchor tag. I'm not sure how it would be done, but i know that wont work! :cheers: <br />
<br />
<br />
::13 year old::<!--content-->It can be done using an .hta and ActiveX.<br />
<br />
You can find information about .hta's at the MSDN Library here (<!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/workshop/author/hta/reference/objects/hta.asp">http://msdn.microsoft.com/library/defau ... ts/hta.asp</a><!-- m -->).<br />
<br />
A good article on building/scripting .hta's can be found here (<!-- m --><a class="postlink" href="http://www.vbwm.com/articles/2002/abarfield/hta01/">http://www.vbwm.com/articles/2002/abarfield/hta01/</a><!-- m -->).<br />
<br />
A discussion which answers your specific question can be found here (<!-- m --><a class="postlink" href="http://www.codingforums.com/showthread.php?s=&threadid=16467">http://www.codingforums.com/showthread. ... adid=16467</a><!-- m -->).<br />
(Take note of F.N.G's examples)<br />
<br />
.....Willy<!--content-->Originally posted by karinne <br />
I don't think you can't get rid of the dialog box. I'm pretty sure it's something on the user end. Someone correct me if I'm wrong on this. <br />
if you want to by pass the Download <!--more--> then click on "always open this" instead of Download <!--more--> it.<br />
<br />
but it will make it like that when you go on the net as well so it is not recomemded.<!--content-->Here is another way which was discussed here (<!-- m --><a class="postlink" href="http://codingforums.com/showthread.php?threadid=27750">http://codingforums.com/showthread.php?threadid=27750</a><!-- m -->).<br />
<br />
<html><br />
<head><br />
<title>-</title><br />
<script type="text/JScript"><br />
var v = new ActiveXObject("Shell.Application");<br />
</script><br />
</head><br />
<body><br />
Using your Example:<br />
<br>file:///C:/Program Files/Microsoft Office/Office/excel.exe<br><br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:v.ShellExecute('excel.exe', '', 'C:\\Program Files\\Microsoft Office\\Office');">Excel</a><br />
<br><br>Using Absolute Path:<br><br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:v.ShellExecute('wmplayer.exe', '', 'C:\\Program Files\\Windows Media Player');">Windows Media Player</a><br><br />
in: C:\\Program Files\Windows Media Player\ <br />
<br>(if you have it there)<br />
<br><br>Using Relative to Root:<br><br />
<a href=http://www.htmlforums.com/archive/index.php/"javascript:v.ShellExecute('Notepad');">Notepad</a><br><br />
in the system folder<br>(if you have it there)<br />
</body><br />
</html><br />
<br />
.....Willy<!--content-->willy, that will only work if the client has the exe, right?<br />
<br />
good idea, but i dont think its going to work for him.<!--content-->Originally posted by Code junkie <br />
Hi there,<br />
I want to build an 'admin page' that will be stored locally in HTML.<br />
The page will be used to run executable files that I have built to automate various tasks, ie send out whitepaper to people who have requested it on our online form,etc<br />
<br />
It will only work using Windows Explorer or Internet<br />
Explorer and if you know the path to the .exe file. In<br />
this case, the o/p could bundle the Admin page with his<br />
other .exe's files and use a Relative path. In the event<br />
his clients are only adding the Admin page, they should be<br />
instructed to place the Admin page within the same folder.<br />
<br />
Addtionaly, if Code Junkie wrote his own .exe's and when<br />
installed they placed Shortcuts on the Desktop. He could<br />
also employ this method using the Desktop Shortcut Name.<br />
<br />
.....Willy<br />
<br />
BTW: Did you try using the Notepad link?<!--content-->
 
Back
Top