Topic "Using WinSCP for synchronisation"

Author Message
Acuna
[View user's profile]

Joined: 2015-12-21
Posts: 2
Hello!

I'm trying to use WinSCP synchronisation my project files with my remote server. I can create a folder at my local server, so it must be created at the remote server too after synchronisation. I'm using mkdir for every single file to create its folder if it isn't created yet. But if the folder exists, I've got an error that it's already exists (of course, because it's exists). I'm using

Code:
option batch continue

option before mktime, and

Code:
option batch abort

after. It's helped, but error message is shown all the same. Is there is way not to try to create a folder when it's exists, or flags to supress this error message, looks like -no-messages or -auto to automatic sunchro the files or something like this...

Thanks a lot!

P. S. And yes, I've read the https://winscp.net/eng/docs/script_checking_file_existence. There is so many files and I think it must be so slow to start WinSCP to check for every dir.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
Switch to WinSCP .NET assembly.
https://winscp.net/eng/docs/library_from_script
Acuna
[View user's profile]

Joined: 2015-12-21
Posts: 2
Thanks a lot for your answer, but I write on Batch, so I can't use Windows Power Shell or write the addons for WinSCP on .NET, I hoped that I could simply hide this message... That's sad...
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
What prevents you from calling PowerShell from your batch file?
Advertisements

You can post new topics in this forum






Search Site

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