Copy multiple files from one directory to other directory

Amir

New Member
Hi all,
I am trying to copy multiple file from source path to destination path, both paths are dynamic which are stored in data items.
I writing .bat file with everytime.(action->utility managemnt->write txt file). see screen shot 1.jpg.
So for coping files, the two linescript should be like below:
cd /d "c:\Main folder"
for /r %%d in (*.txt) do copy "%%d" "c:\copy here" /y

where 'Main folder' is your source folder and 'copy here' is the destination and both command should start from new line.

View attachment 1.JPG

But when i am running the BP, both the command scripts are coming on same line hence not copying files, see screen shot 2.jpg.
What can i do to make the second command script to come on new line in (action->utility managemnt->write txt file).


View attachment 2.JPG
 
Top