.bat file for windows to transfer folders through WinSCP

Advertisement

NAV.S.
Guest

.bat file for windows to transfer folders through WinSCP

Hi,

I want to make a batch file through which i can transfer some of the directories(allowing only newer files to transferred) from the local windows machine to a Linux FTP server.

I made a bat file as following

cd "Path to the Directories"
winscp usrname:password@IP:port number


Using this batch files we are logged on the FTP directory, but if i pass anyother
command in this batch file it does'nt works.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,802
Location:
Prague, Czechia

Re: .bat file for windows to transfer folders through WinSCP

You have to put the commands to WinSCP script file, not to .bat file.
See FAQ and documentation.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum