ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   copy folder (https://www.excelbanter.com/excel-programming/360873-copy-folder.html)

alvin Kuiper

copy folder
 
Hi
I try to use this
in a loop
"tt" = kursust and "kur1= the numbers in the loop

Set fso5 = CreateObject("Scripting.FileSystemObject")
Set folderobj5 = fso5.GetFolder("\\server\kursister$\" & tt & tal & kur1)
fso5.CopyFolder folderobj5, "\\server\vaerksted$\" & tt & tal & kur1

What i want is to copy all from
\\server\kursister$\" & tt & tal & kur1)
to
\\server\vaerksted$\" & tt & tal & kur1

Hope someone can help

alvin


alvin Kuiper

copy folder
 
I have done it

Alvin


"alvin Kuiper" wrote:

Hi
I try to use this
in a loop
"tt" = kursust and "kur1= the numbers in the loop

Set fso5 = CreateObject("Scripting.FileSystemObject")
Set folderobj5 = fso5.GetFolder("\\server\kursister$\" & tt & tal & kur1)
fso5.CopyFolder folderobj5, "\\server\vaerksted$\" & tt & tal & kur1

What i want is to copy all from
\\server\kursister$\" & tt & tal & kur1)
to
\\server\vaerksted$\" & tt & tal & kur1

Hope someone can help

alvin



All times are GMT +1. The time now is 09:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com