HTML - Open localization via explorer.exe / file via excel -


i have got hyperlink in html.
used code, example:

<a href="//test/test/test" target="_explorer.exe">open_me</a> 

question 1: want open localization in explorer.exe. how can make it?

question 2: need open file (excel macro - xlsm) via hyperlink in excel.

<a href="//test/test/test/test.xlsm">click_me</a> 

maybe should add meta? please write should do.
thank you

you can open same new browser setting property target="_new", can't open in different browser.
anyvay, can open popup window using javascript, not best. http://www.aspsnippets.com/articles/popups.aspx


you need create shared folder on network , put workbook there. can use file:///server/path/file.xls format in <a /> links on intranet direct user actual file on server.

i recommend start creating simple html doc on desktop familiar file:/// path format. eg

<html>     <head />     <body>         <a href="file:///server/path/file.xls">click</a>     <body>  <html> 

save in notepad , rename extension .txt .html.

you can type file:/// paths straight windows explorer's address bar allow testing paths without resorting html document mentioned above.

unfortunately! seems browsers default behavior download link rather open (even if local resource), if want open must resort changing browser intranet permissions allow js access local resources, allows use technique below.


this article (http://www.codeproject.com/articles/113678/how-to-execute-a-local-file-using-html-application) uses

<script type="text/javascript" language="javascript">     function runfile() {     wshshell = new activexobject("wscript.shell");     wshshell.run("c:/windows/system32/notepad.exe", 1, false);     } </script> 

to open notepad. can use command line arguments excel.exe (https://support.office.com/en-za/article/command-line-switches-for-excel-321cf55a-ace4-40b3-9082-53bd4bc10725) tell file path is...

excel.exe "c:\path\excel.xls" 

from here more information @3-14159265358979323846264.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -