I have 2 folders name FOLDER_ONE and FOLDER_TWO,now I want to copy all the files and folders from FOLDER_ONE and paste them into FOLDER_TWO and want to rename this FOLDER_TWO to FOLDER_ONE .Can any one tell me how can I do this by using vbs ???
I have 2 folders name FOLDER_ONE and FOLDER_TWO ,now I want to copy all
Share
Run the following as a batch file:
The /-y is used to prompt if there are duplicates, and you can remove it if you don’t care about over writing files.
This part “D:\example\original*01.txt”* we are defining the file(s) we will be moving. So in this example this will be any file that has 01 and .txt in its name. You will need to make sure you have the full path with “ “ around it.
This is where “D:\example\New folder\” we will be moving the file to. Once again make sure you have the “ “ around the full path if you have any spaces in the folder names.