Sub i copyFiles ()
Oscurare i myFolders (), lo srcFolder come stringa, J, pdfFile come stringa, destFolder come stringa
destFolder = “C:\Commissioning Database\PDFReports\„
srcFolder = “\ \ servername \ dati \ CxFiles \„
myFolders = allineamento (“ATR„, “IIF„, “RIF„, “partenza„, “ConstructionsDwgs„, “FPT„, “spec.„, “FAT„)
Per J = LBound (myFolders) a UBound (myFolders)
pdfFile = Dir (srcFolder & myFolders (j) & “\ *.pdf„)
Mentre pdfFile <> ""
srcFolder & myFolders di FileCopy (j) & “\„ & pdfFile, destFolder & myFolders (j) & “\„ & pdfFile
pdfFile = Dir
Wend
Dopo
Sommergibile dell'estremità
|