Option ExplicitContoh penggunaan fungsi di atas:
Public Function CopyAllFiles(Source As String, Destination As String)
Dim fso As New FileSystemObject
Call fso.CopyFolder(Source, Destination)
Set fso = Nothing
End Function
Private Sub Command1_Click()
Call CopyAllFiles("C:\djview", "D:\djview")
End Sub