我在飛行中創建目錄,我想將文件下載到新創建的目錄:下載在C#中的文件到新創建的目錄
// The code to create the directory based on revision number and original name
System.IO.Directory.CreateDirectory(@"C:\Users\bob\Desktop\Hello\Files\" + "v" + fileInfo.RevisionNumber + "_" + fileInfo.OriginalName);
// This method downloads files and takes 4 parameters.
// The only one that really matters is the second one, targetFolder,
// which is a String value. Any idea on how I can download the files
// to the newly created directory (above) using the method below?
ecm.RetrieveFile(fileInfo.ID, targetFolder, recreateDirectoryStructureFlag, overwriteWithoutPromptFlag);