Re: ini file being used by another porcess
In general you should not rely on external configuration in your scripts.
To isolate your script from any configuration, use/ini=nul
command line switch:
https://winscp.net/eng/docs/scripting#configuration
If you really want to use an external configuration INI file (though again, you should not), set the INI file read-only to prevent WinSCP from trying to update it.
https://winscp.net/eng/docs/config#ini_readonly
We set the INI file read-only. It works. Thanks for your help.