I have a command which is called $$REQ ID-> its looks for files that need to be downloaded. when i run this in procomm currently i hit the download folder and then name the file.
how do you download the file and then name it in the script file?
What transfer protocol are you using? If it is not Zmodem or Kermit, then you can easily specify the filename in the script. Otherwise, you have to jump a couple hoops since Zmodem and Kermit pass the filename information along at the beginning of the transfer.
Here is a modified example from my site that shows you how to receive the file and do a little error-checking after the fact (change filename to the path and filename you want the file to be called on your local machine):
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.