Open Windows Explorer Folder from ASP.net

G

Guest

I have a simple ASP.net form with a button on it that when the user clicks on
the button I want a folder to open in windows explorer.

I have tried the following without success. No error messages . . . it just
doesn't work.

System.Diagnostics.Process.Start("Explorer.exe",
"\\ServerName\Subfolder1\Test\AccountingReports")

Thanks!!!!
 
J

Jan Peter Stotz

Anonymous said:
I have a simple ASP.net form with a button on it that when the user clicks on
the button I want a folder to open in windows explorer.

I guess the explorer should be opened on the client?
I have tried the following without success. No error messages . . . it just
doesn't work.

Because the process runs on the server. Even if Client and server are the
same machine, it will not work, because the new process inherits the
credentials used by asp.net and if you don't use impersonation that is not
the account you are currently working with.

Jan
 

jin

Joined
Nov 22, 2006
Messages
1
Reaction score
0
Hi, Jan: I have the same problem. Instead of using process.start(), I used shell(). It works fine in VS8 , but not under IIS. I set the IUSR_ComputerName account on IIS, and added <identity impersonate="true" userName="networkuser" password="password"/>. It's still not working.
Jan, do you know how to set up the impersonation correctly? I am using IIS 5.1.
Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top