jquery - How to pen c drive in windows using html or javascript -


i want open c drive using html , javascript on windows not on browser

this code open c drive in browser

<a target="_blank" href="file://c:\">useful link </a> 

but want open in windows open c drive using html or javascript

try this...

new activexobject("wscript.shell").run('"c:\"'); 

if you're looking full blown app on windows using html , javascript, check out hta: https://msdn.microsoft.com/en-us/library/ms536495(v=vs.85).aspx

example hta:

<!doctype html> <html lang="en">   <head>     <title>test</title>      <hta:application       border="thin"       borderstyle="normal"       caption="yes"       contextmenu="no"       innerborder="yes"       maximizebutton="yes"       minimizebutton="yes"       navigable="yes"       scroll="auto"       scrollflat="yes"       showintaskbar="yes"       sysmenu="yes"       windowstate="normal"     />      <script>       function opencdrive() {         new activexobject("wscript.shell").run('"c:\"');       }     </script>   </head>   <body class="bodymain">     <a href="#" onclick="opencdrive();">open c drive</a>   </body> </html> 

save above test.hta , launch it...


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

qt - Passing a QObject to an Script function with QJSEngine? -

c# - Web API response xml language -