Joe4
MrExcel MVP, Junior Admin
- Joined
- Aug 1, 2002
- Messages
- 74,345
- Office Version
- 365
- Platform
- Windows
Anyone here have any FTP scripting experience? We have some automated batch files that connect to a remote FTP server and download files to our FTP server.
This batch file runs daily, but the client doesn't clean out the old files very often. So what we would like to do is to "mark" the files we download so we don't download them again. Unfortunately, the file names are different. The only thing that is consistent is the PGP extension.
So I was hoping that after I download the file to rename it. My script looks something like this:
The problem is that it doesn't seem to like my RENAME command. I am not sure if the wildcards are presenting the problem.
Can anyone help, or does anyone know of an FTP forum?
Thanks.
This batch file runs daily, but the client doesn't clean out the old files very often. So what we would like to do is to "mark" the files we download so we don't download them again. Unfortunately, the file names are different. The only thing that is consistent is the PGP extension.
So I was hoping that after I download the file to rename it. My script looks something like this:
Code:
<connection/login info here>
cd OurCompany
cd FromVendor
binary
mget *.pgp
rename *.pgp *.old
BYE
Can anyone help, or does anyone know of an FTP forum?
Thanks.