Dear all,
I need to copy a set of files every once in a while from my build env to a shared drive.
The set of files are same, names may vary but they come with same extension.
So far I am doing it manually. I wish it could be done using a script which would be
less error prone.
List of files I need to copy every time:
*.axf
*.fls
*.txt
*.err
*.dummy
*.log
*.cfg
Build evn folder where the files are generated:
HW
HW\MODEM\
HW\MODEM\OCEAN\12345.axf
HW\MODEM\OCEAN\12345.err
HW\MODEM\OCEAN\core_dump.log
HW\MODEM\OCEAN\DUMMY\ocean.fls
I need to make sure that when I copy the files, the folder structure is maintained. That is,
I need to create the base folders first, e.g, to copy core_dump.log in example above I need to
create HW\MODEM\OCEAN\ and then copy the file underneat.
Can you please help How can I do it in a script, perl or DOS?
Thanks in advance.