Link to home
Start Free TrialLog in
Avatar of Harel
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)
SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Daniel Pineault
Daniel Pineault

Windows 10 now has cURL included so you can use it.

Also, never use FTP, always use FTPS.  Always encrypt!
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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.