by Eddy B (3 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 21st September 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Moves or copies an entire directory and all of its contents to a location of your choice. In 3 lines of code! For VB and ASP
'THIS FUNCTION WILL COPY ALL FILES
Function Copy_AllFiles
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFolder "C:\PathOfDirectoryToCopy", "C:\DestinationOfFolder"
End Function
'***********************************************************
'THIS FUNCTION WILL MOVE ALL FILES
Function Move_AllFiles
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
fso.MoveFolder "C:\PathOfDirectoryToMove", "C:\DestinationPath"
End Function
No comments have been posted about Moves or copies an entire directory and all of its contents to a location of your choice. In 3 line. Why not be the first to post a comment about Moves or copies an entire directory and all of its contents to a location of your choice. In 3 line.