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;
}
当我尝试运行以上脚本时,我收到了以下错误信息:
File.Copy error - C# - IOException The filename, directory name, or volume label syntax is incorrect