B
Ben
Hi all,
I got the above error when I tried to run through some simple vb 2008
code in the CopyFolder line. I tried using the UNC path in the quotes
but that didn't help. Can you share some thoughts on this? Thanks,
Ben
Imports System
Imports System.IO
Imports Scripting
Module MyCode
Sub bh_CopyFMC_Files()
Dim oFolder As FileSystemObject
oFolder = New FileSystemObject
oFolder.FolderExists("C:\Source\folder1\)
oFolder.FolderExists("D:\Destination\folder1")
oFolder.CopyFolder("C:\Source\folder1\", "D:\Destination\", True)
MsgBox("Folder has been copied")
End Sub
End Module
I got the above error when I tried to run through some simple vb 2008
code in the CopyFolder line. I tried using the UNC path in the quotes
but that didn't help. Can you share some thoughts on this? Thanks,
Ben
Imports System
Imports System.IO
Imports Scripting
Module MyCode
Sub bh_CopyFMC_Files()
Dim oFolder As FileSystemObject
oFolder = New FileSystemObject
oFolder.FolderExists("C:\Source\folder1\)
oFolder.FolderExists("D:\Destination\folder1")
oFolder.CopyFolder("C:\Source\folder1\", "D:\Destination\", True)
MsgBox("Folder has been copied")
End Sub
End Module