0

Can anyone tell me how to open a windows folder by clicking on href link in php page? I'm unaware of this concept and even no idea..Even no related posts in stackoverflow too. Somebody help..thanks in advance..

Tried this but went vain..

<a href="file:///D:/Tools/">Open folder</a>
smallerik
  • 175
  • 1
  • 3
  • 11
  • what you supposed to do with that? – Mohammad Faisal Feb 13 '14 at 06:21
  • 1
    check this post http://stackoverflow.com/questions/5246292/open-local-folder-from-link – Jenz Feb 13 '14 at 06:23
  • @Mohammad Faisal Our company required to search files from browser which displays path of it. Until that i have done my job..now they added a requirement to open the desired folder from the path in browser.kindly help – smallerik Feb 13 '14 at 06:40
  • @Jenz so we cannot achieve this functionality for security reasons right? ok can we copy the path to clipboard atleast? any ideas on it? – smallerik Feb 13 '14 at 06:45
  • Got "copy to clipboard" from http://jsfiddle.net/Vr4Ky/180/ thanks – smallerik Feb 13 '14 at 07:56

1 Answers1

0

Use an form input instead.

<body>
<form>
<input type="file">
</form>
</body>
</html>
Dylan de St Pern
  • 469
  • 1
  • 7
  • 20
  • hi..from output i need to open a windows explorer. Output iam printing a filepath from my php code..how can i achieve this? – smallerik Feb 13 '14 at 06:42
  • Some browsers will not allow that for security reasons, but here is an article of how to work around the problem with javascript.. [Accessing Filepath in HTML](http://rattomago.wordpress.com/2009/02/18/accessing-filepath-in-html-input-element-via-javascript/) – Dylan de St Pern Feb 13 '14 at 07:08