I am not sure this question belong in this forum but will be happy to re-post if pointed to the right forum. I am trying to FTP a file from a specific folder on my PC with the following code:
corpftp.corp.life.net (exit=255
resources\corpftpuser
Password
cd corpftp\cdf\vouchers
get GL__*.* 'cxt.input.vouchers' (replace
quit
My problem is that the folder has files added to it each day by the bank and are unique by having the month and day added:
GL__0201.001
GL__0201.002
GL__0202.001
GL__0203.001
etc....
I want to automate the transfer process but only want to select the file that matches today's month and day (with the code above, I am getting all the files and then have to edit the Mainframe file).
Does anyone have a code (if it's possible) that can be added to my code above that will replace the '*.*' with today's date 'mmdd.*' that will allow me to pick only the current file from the list in the folder?
corpftp.corp.life.net (exit=255
resources\corpftpuser
Password
cd corpftp\cdf\vouchers
get GL__*.* 'cxt.input.vouchers' (replace
quit
My problem is that the folder has files added to it each day by the bank and are unique by having the month and day added:
GL__0201.001
GL__0201.002
GL__0202.001
GL__0203.001
etc....
I want to automate the transfer process but only want to select the file that matches today's month and day (with the code above, I am getting all the files and then have to edit the Mainframe file).
Does anyone have a code (if it's possible) that can be added to my code above that will replace the '*.*' with today's date 'mmdd.*' that will allow me to pick only the current file from the list in the folder?