string sourcePath = System.IO.Path.GetDirectoryName (FileUpload1.PostedFile.FileName); string targetPath = @"e:\\PODetails"; sourcePath.GetHashCode(); foreach (string sourceFilePath in Directory.GetFiles(@sourcePath)) { string fileName = Path.GetFileName(sourceFilePath); string destinationFilePath = Path.Combine(targetPath, fileName); File.Copy(sourceFilePath, destinationFilePath, true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)