Topic "WinSCP.com and INI file updates"

Author Message
mmlclone
[View user's profile]

Joined: 2015-10-28
Posts: 1
Hi

We are using one copy of WinSCP used by multiple processes. WinSCP updates the INI file on exit and often we get error "Error writing to file '.....\WinSCP\WinSCP.ini'". Most likely becase two instances on WinSCP are writing the INI at the same time. We want to use the INI instead of windows registery. Is it possible to disable INI updates or some other thing?


Windows Server 2008R2
WinSCP 5.7.1.0


Command:
Code:
WinSCP.com /script=somescript.txt /parameter user@server ppkfile.ppk /some/dir some_file.zip some_file.zip



somescript.txt:
Code:
option batch on
option confirm off
open sftp://%1% -privatekey="%2%"
cd %3%
put %4%
chmod 660 %5%
close
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24993
Location: Prague, Czechia
Make the INI file read-only.
See https://winscp.net/eng/docs/config#ini_readonly
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