VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Moves or copies an entire directory and all of its contents to a location of your choice. In 3 line

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

Rate Moves or copies an entire directory and all of its contents to a location of your choice. In 3 line



'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


Download this snippet    Add to My Saved Code

Moves or copies an entire directory and all of its contents to a location of your choice. In 3 line Comments

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.

Post your comment

Subject:
Message:
0/1000 characters