Hynesm
January 4th, 2009, 08:00 AM
G'day all,
I hope this is the correct forum to post this problem in.
I am trying to create a script that logs into a web-server via FTP and retrieves the most recent file created. This is my commands/code so far.
What I want to do is use the 'get' FTP command to retrieve the most recently created file.
This is the command I run:
ftp -i -s:connect.txt galacticpatrol.net
File connect.txt:
myuser
mypass
lcd C:/User/Mark/website/
cd private/backup
binary
Regards,
Mark
I hope this is the correct forum to post this problem in.
I am trying to create a script that logs into a web-server via FTP and retrieves the most recent file created. This is my commands/code so far.
What I want to do is use the 'get' FTP command to retrieve the most recently created file.
This is the command I run:
ftp -i -s:connect.txt galacticpatrol.net
File connect.txt:
myuser
mypass
lcd C:/User/Mark/website/
cd private/backup
binary
Regards,
Mark