Topic "DOS Batch File to Synchronize"

Author Message
shcsbaker
[View user's profile]

Joined: 2014-12-11
Posts: 9
Looking for a tutorial on how to create a DOS Batch file to sync computer A to Computer B. I keep getting myself turned around.. Should I use a script file? Can it be done in a single line of code?

Thanks
Kevin
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26480
Location: Prague, Czechia
See https://winscp.net/eng/docs/guide_automation

You can use a single-line command too:

winscp.com /command "open sftp://user@host/" "synchronize remote c:\local\path\ /remote/path/" "exit"
shcsbaker
[View user's profile]

Joined: 2014-12-11
Posts: 9
Thank you! Just what I needed
shcsbaker
[View user's profile]

Joined: 2014-12-11
Posts: 9
I'm using the one line example and I get a transfer rate of 250 KB/s... starts out high, but within a second or two drops down to 250 KB/s, same results if I use the GUI. If I use Filezilla, windows version, not command line, I get 4x the upload speed.. am I doing something wrong?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26480
Location: Prague, Czechia
What version of WinSCP are you using? Did you try the latest?
shcsbaker
[View user's profile]

Joined: 2014-12-11
Posts: 9
This was my fault.. the server I was sending to only had 2mbps internet... not sure how I was seeing the faster speeds, retested on both and both are 250kbs

Thanks
Kevin
Advertisements

You can post new topics in this forum






Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License