녀석 _DONE으로 끝나는 모든 파일을 다른 폴더로 이동하려고합니다. 한 폴더에서 다른 폴더로 파일 이동 C#
나는//take all files of main folder to folder model_RCCMrecTransfered
string rootFolderPath = @"F:/model_RCCMREC/";
string destinationPath = @"F:/model_RCCMrecTransfered/";
string filesToDelete = @"*_DONE.wav"; // Only delete WAV files ending by "_DONE" in their filenames
string[] fileList = System.IO.Directory.GetFiles(rootFolderPath, filesToDelete);
foreach (string file in fileList)
{
string fileToMove = rootFolderPath + file;
string moveTo = destinationPath + file;
//moving file
File.Move(fileToMove, moveTo);
하지만 난이 오류 말을 얻을이 코드를 실행에
을 시도했다.The given path's format is not supported.
어디서 잘못 되었나요?
윈도우에서 파일 전송이'_'을 지원하는지 모르겠습니다. – Rohit