title: How to copy and paste the files from shared folder or from another server?
body: <p>I am creating application. In that, I put combo box, combo box filled by application no. came from db. on the selection of combo box the grid fill that files which in another machine in drive. Like <code>//user/public/af001/edit/test.JPEG</code> and in grid I put the download link on particular row for download that file in my machine but issue is when I am downloading that file, I am not geting <code>//user/public/af001/edit/test.JPEG</code>.</p>
  
  <pre><code>            if (e.Column Index == 0)
              {
                  int row;
                  //Get the row index
                  row = e.Row Index;
  
                  string old Path = @"~\\Users\Public\AS\AFS1402190001\Edit\test.JPEG";
                  string new path = @"E:\example\";
                  string new File Name = "new file name";
                  File Info f1 = new File Info(old Path);
                  if (f1.Exists)
                  {
                      if (!Directory.Exists(new path))
                      {
                          Directory.Create Directory(new path);
                      }
                      f1.Copy To(string.Format("{0}{1}{2}", new path, new File Name, f1.Extension));
                  }
               }
  </code></pre>
  
  <p>Can you tell me what is the issue?</p>
  
  <p>Thanks for help.</p>