Help copying files with their hierarchy structures

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
prokopis
Posts: 1
Joined: 12 Jun 2018 03:46

Help copying files with their hierarchy structures

#1 Post by prokopis » 12 Jun 2018 03:58

Hi all,
I have a list with .sql files File-list.txt as follow

1.sql
abc.sql


Moreover I have a structure with folders and files with the parent directory to be called SOURCE

Code: Select all

SOURCE
|->  FOLDER_1
     |->  1.sql
	 |->  2.sql
|->  FOLDER_2
     |->  FOLDER_4
	      |->  abc.sql
	 |->  10.sql 


And a target which is empty.

I want to copy all the files from SOURCE which are included in File-list.txt files
with their structure.

For example above I want after the exceution to have

Code: Select all

TARGET
|->  FOLDER_1
     |->  1.sql
|->  FOLDER_2
     |->  FOLDER_4
	      |->  abc.sql

Could you please help me ?
Last edited by aGerman on 13 Jun 2018 02:17, edited 1 time in total.

Post Reply