Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Cannot open file "C:\Program Files (x86)\WinSCP\WinSCP.ini". The process cannot access the file beca

The INI file does not contain configuration only.
It contains caches and usage statistics too.
bagdrums

Re: Cannot open file "C:\Program Files (x86)\WinSCP\WinSCP.ini". The process cannot access the file beca

Hi
Thanks for the reply.
I thought that the WinSCP.ini was predefined and fixed config file, so I'd understand a process needing to open the file but why would a process need to write to an .ini config
file?
Thanks again for the advice.
bagdrums

Re: Cannot open file "C:\Program Files (x86)\WinSCP\WinSCP.ini". The process cannot access the file beca

Hi
I have a number of Windows Task scheduled WinSCP scripts running from a Windows 2019 SFTP server. (The scripts are Windows commands batch files)

I think what must have happened is that a couple of tasks/scripts have overlapped due to retry attempts. The scripts I have piped to log files and it is these log files that display the error message:
Cannot open file "C:\Program Files (x86)\WinSCP\WinSCP.ini". The process cannot access the file because it is being used by another process.

I realise I can amend the Windows Task scheduling to help avoid this happening, but I also wanted to know if making the WinSCP.ini Read only may also be a way to avoid any future contention for the WinSCP.ini file.
Many Thanks
martin

Re: Cannot open file "C:\Program Files (x86)\WinSCP\WinSCP.ini". The process cannot access the file beca

Can you provide some context? Under what circumstances do you get the error?
bagdrums

Cannot open file "C:\Program Files (x86)\WinSCP\WinSCP.ini". The process cannot access the file beca

Hi Support
I noticed a similar Support Post under this web page url below:-
WinSCP.ini file in use
The error message in this earlier post was slightly different from mine as it refers to
Cannot "Create file" rather than Cannot "Open File" System Error. Code: 32.

My Question is - does the advice to Set the INI file read-only also apply the the error message that I am receiving below:-
Cannot open file "C:\Program Files (x86)\WinSCP\WinSCP.ini". The process cannot access the file because it is being used by another process

Is there a way to see what process had the WinSCP.ini file locked

Many Thanks