FTP to SFTP batch file

I have ta batch file that uploads couple of  file to a server. I have a FTP job that runs fine but because of additional security we are asked to use SFTP to upload the files.

How do i change FTP to sftp ? is the coding different for sftp?  or should I just put SFTP instead of FTP?
SvlssAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
SFTP is an entirely different protocol than plain FTP and requires different client and server programs.  Regular Microsoft FTP does not support SFTP.  Filezilla and CoreFTP clients support SFTP as does WinSCP.  Is the SFTP server already installed on the server?
0
KimputerCommented:
You need to totally change the batch file to another solution (if your batch file doesn't depend on a third party tool).
If it does depend on a third party tool, read up on it, and see if sftp is supported and how you need to change the commands.
If there's no third party tool involved, now is the time (there isn't much other choice!). Look into WinSCP and the scripting it provides.
0
NVITCommented:
Just change thE line that invokes FTP or SFTP. I have a solution using WinSCP here WinSCP with SFTP that has a command like...
open sftp://user2:password@example.com/

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bill PrewCommented:
Can you post your current batch script?

~bp
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Batch

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.