How is your question related to file copying topic? If it is not, please start a new topic.
Please don't address questions to me personally. I am moderating these forums and don't have all the answers.
Now as for your question, I'd suggest studying Macro language commands help that contains lots of code examples. Here is the link: http://ttssh2.osdn.jp/manual/en/macro/c ... index.html
High level structure of the code should be:
1) establish connection to the switch with connect command
2) use one of send commands to send text to the switch
3) use one of wait commands to wait for prompt to come back, which will mean the switch is ready to accept the next command
4) repeat steps 2 and 3 as many times as needed
5) close connection