Click here to Skip to main content
14,424,458 members
Rate this:
Please Sign up or sign in to vote.
See more:
pls help us
We have built an intranet web-application (that is only used inside the company - so security issues do not matter!). We have several situations, where we have a link in a web-application that should access a local directory on the local file system. When clicking on the link a windows explorer instance should open with given a directory open.
System.Diagnostics.Process.Start("explorer.exe",@"c:\teste");
Posted
Updated 23-Jul-14 23:52pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

No.
It won't work.

C# code runs on the Server, not the Client and so any Processes you start with C# will run on teh Server where the user cannot see them.

You cannot run applications on the client from C# code except in exceptional circumstances which do not occur in well over 99% of cases. This is by design,. and for security reasons: if you copuld do it, so could "malicious" sites.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100