Copy folder (1 Viewer)

Philmore

Registered User
Joined
Dec 20, 2001
Messages
21
Hi Guys I need some help with copying a folder from a server to a local computer. I need to copy a foler with dbf files the server to my PC. How can I achieve this. I do not want to use a batch file.
 

Alexandre

Registered User
Joined
Feb 22, 2001
Messages
794
Have a look to the .CopyFolder method (of the FileSystemObject) in Access Help.

Ex:
Code:
Dim fs As Variant

Set fs = CreateObject("Scripting.FileSystemObject")
fs.CopyFolder "c:\mydocuments\current workfiles\*", "c:\mydocuments\archived workfiles"
Alex
 

Philmore

Registered User
Joined
Dec 20, 2001
Messages
21
Hey Alex thanks for the code worked like a dream.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom