I need to automate file retrieval on an FTP site that I connect to via the internet. I can successfully do this using FTP from the windows command prompt when my computer is connected to the internet. Here is what I do today manually.
1.) Connect to the internet
2.) Open the Command Prompt
3.) Type the following commands. Actual commands typed are in italics.
C:\>FTP
ftp>open ftp.someftpsite.com
Enter Username:username
Enter Password:password
Connected to site
ftp>GET ./Data/Waiting stats.txt
File Transfer Successful
ftp>disconnect
ftp>exit
C:\>
Basically this puts the file stats.txt on my C: drive. Now, I know how to use Aspect to connect and disconnect to this site. What I'm looking for is how to use aspect to send that GET command and get the file.
Thanks for your help.
Todd
1.) Connect to the internet
2.) Open the Command Prompt
3.) Type the following commands. Actual commands typed are in italics.
C:\>FTP
ftp>open ftp.someftpsite.com
Enter Username:username
Enter Password:password
Connected to site
ftp>GET ./Data/Waiting stats.txt
File Transfer Successful
ftp>disconnect
ftp>exit
C:\>
Basically this puts the file stats.txt on my C: drive. Now, I know how to use Aspect to connect and disconnect to this site. What I'm looking for is how to use aspect to send that GET command and get the file.
Thanks for your help.
Todd