Open a Folder From ASP.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All

I am trying to open a folder ( "D:\screenshots") by clicking a button in the
web page, which opens the directory/folder in windows explorer in VS. But if
i deploy the same application and install it, the same code doesnot work. The
code i have written is as follows:

Protected Sub Open_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Open.Click
Dim sFolderString As String
sFolderString = "D:\screenshots"
Process.Start(sFolderString, "")
End Sub

Can anyone help me out...
 
Back
Top