1
Reply

To open windows folder on webpage

ariez

ariez

Jun 16 2010 1:07 AM
2.7k

This code is working fine but opening folder on windows explorer, what i want is to open the folder on webpage. The folder is present on a FTP server named "SAN".What changes should be made in this code?????
Thanx.......
 //// Opening Respective Folder of a User ////
                DirectoryInfo directories = new DirectoryInfo(@"C:\\Inetpub\\ftproot\\san\\");
                DirectoryInfo[] folderList = directories.GetDirectories();
                int folder_count = folderList.Length;
                for ( int j = 0; j < folder_count; j++)
                   if (Convert.ToString(folderList[j]) == id.Text)
                    {
                       Process p = new Process();
                       string path = Path.Combine(@"C:\\Inetpub\\ftproot\\san\\",id.Text);
                       p.StartInfo.FileName = path;
                       p.Start();
                   }

Answers (1)