0

Working on a website solution and need to give user links for different folders on local computer. (Open explorer fileview)

I have worked two ways.

1) Simple link looking somting like this:

<a href="file:///H:/THEFOLDERTOOPEN/" target="_blank">Link</a>

Works in IE but no other browsers.

2) Used: System.Diagnostics

Process.Start(@"file:///" + THEFOLDERTOOPEN);

This works across browsers working on local machine. But when using with http:// I am getting error:

Exception: System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified

How to solve this issue?? Thanks in advance

user2761009
  • 85
  • 2
  • 16

1 Answers1

3

Process.Start Runs a process on your local computer (for example a program or opening a folder in windows explorer). It cannot be used with HTTP. What you are trying to achieve is actually not possible without using of Silverlight, Flash or any other Third Party Technology. You cannot simply access the file system from HTTP.

nsgocev
  • 4,390
  • 28
  • 37