try
{
DirectoryInfo d = new DirectoryInfo(@"\\filepath\format");
foreach (var f in d.GetFiles("*.csv"))
{
File.Copy(f.FullName.ToString(), @"filepath\out\", true);
};
Dts.TaskResult = (int)ScriptResults.Success;
}
When i am trying the above script, i am getting the below error message
File.Copy error - C# - IOException The filename, directory name, or volume label syntax is incorrect