2015-03-31 5 views

ответ

0
 For Each x In New DirectoryInfo("C:\").GetFiles("*.pdf", SearchOption.TopDirectoryOnly)' or AllDirectories 
      File.Copy(x.FullName, Path.Combine("H:\", x.Name), False) 'Overwrite = FALSE 
     Next 
1
For Each x In My.Computer.FileSystem.GetFiles("C:\", FileIO.SearchOption.SearchTopLevelOnly) ' Or SearchAllSubDirectories 
     If x.EndsWith(".pdf") Then IO.File.Copy(x, "H:\", False) 'Overwrite = FALSE 
    Next 
Смежные вопросы