Topic "ini file being used by another porcess"

Author Message
Moji

Guest


When I execute winscp script, I am getting this.
Can't create file 'C:\winscp\winscp.ini'
The porcess cannot access the file because itis being used by another process.

The error occur only when a lot of scripts are running together. If one or two scripts are running together is ok.

Please help me to resolve the problem.

Thanks!
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27059
Location: Prague, Czechia
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
moji

Guest


martin wrote:
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.
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