How's it going!
I am trying to copy a directory with files to be copied and pasted to another path, I have this.
Dim Carpeta As String
Carpeta = Path.Combine(SERVIDOR, DATA)
Directory.CreateDirectory(Carpeta)
FileSystem.FileCopy("\27-22910\1", Carpeta)
The FileSystem.FileCopy
is for a file, but I need to copy the whole directory, does anyone know of a function I could use?
If you want to copy a directory, you can use FileSystem.CopyDirectory() to copy the entire contents of one directory to another.
directorio_destino
is created if it does not exist.can even be used with UNC :