I don't have any examples of what you are looking to do, but I can speak about the necessary commands a bit.
To dial the remote system, your script will need to use the dial command. This will require that you place an entry in your Connection Directory for the dial command to reference.
For logging on to the server and sending the commands to transfer the file, you'll need to use the transmit and waitfor commands. For this part of your script, I would recommend using the script recorder to generate the framework of your script. To do this, select the Tools | Scripts | Start Recorder menu item. Make your connection to the remote system and perform the needed steps. While you are doing this, the script recorder will be analyzing the text you send in response to the text that the remote system sent you. When you have completed the tasks, select the Tools | Scripts | Stop Recorder menu item. You will then be prompted to save your script to a file.
After you have done this, open your recorded script in the ASPECT Editor. You will see that the script is mostly composed of waitfor and transmit commands. However, you will not see a sendfile command in your script, which is needed to transmit the file to the other system. This is due to the script recorder only processing text-based commands. Here is how to handle the file transfer:
sendfile ZMODEM "filename"
iStatus = $XFERSTATUS
while iStatus == 1
yield
iStatus = $XFERSTATUS
endwhile
First, this will require that you define the integer variable iStatus in your script. The sendfile command as I've written it above will send your file using the Zmodem transfer protocol, so you may need to modify that argument. "filename" is the path and name of the file to transfer, and the double quotes are required. You would want to place the above block of code in your script just after the transmit command that tells the the remote system to prepare to receive the file. You can also do some error checking on on the iStatus variable after the while loop exits to determine if your file transfer was successful or not.
At the very end of your script, you would want to use either the exit or pwexit command. The exit command ends the execution of your script, while the pwexit command also closes Procomm.