Harel
asked on
Using FTP in windows
Hi,
I want to create a batch file in windows with commands to copy files from FTP to my local directory and to put files in FTP.
How can it be done - I mean how to establish a connection (using username and password) and then using the command line from a batch file to copy and etc...
(I familiar with the "FTP" command in windows - but when I start this program - it asks me to log in and then I need to run commands inside the prompt and cant from outside the FTP prompt)
I want to create a batch file in windows with commands to copy files from FTP to my local directory and to put files in FTP.
How can it be done - I mean how to establish a connection (using username and password) and then using the command line from a batch file to copy and etc...
(I familiar with the "FTP" command in windows - but when I start this program - it asks me to log in and then I need to run commands inside the prompt and cant from outside the FTP prompt)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As @Daniel mentioned, start with either FTPS (TLS over port 21) or SFTP (TLS over port 22).
Avoid FTP (plaintext over port 21) as hacking FTP + scraping FTP login credentials off the wire is trivial + one of the most common ways companies are hacked.
Avoid FTP (plaintext over port 21) as hacking FTP + scraping FTP login credentials off the wire is trivial + one of the most common ways companies are hacked.
Robo-FTP (https://www.robo-ftp.com) is a good option for automating uploads/downloads like this between a remote site (FTP, SFTP, FTPS, etc.) and a local Windows machine. It would be your most secure option (storing credentials encrypted) and would have the easiest learning curve.
Also, never use FTP, always use FTPS. Always encrypt!