Using winscp.ini file causes issue for simultaneous transfer
Hi Martin,
I am running a number of automated simultaneous sftp transfers using winscp 4.3.7. Each transfer is called from a central dos bat file that uses a winscp command line call. The call to winscp has an ini file specified using the \ini switch.
My issue is that winscp regularly updates the [Configuration\CDCache] section of my ini file. This becomes a problem when two simultaneous transfers try to update the ini file at the same time and I get -
Can't create file 'E:\WINSCP3\4.3.7\WINSCP.INI'.
System Error. Code: 32.
The process cannot access the file because it is being used by another process
This causes me to get a failure status for the transfer.
Is there any way to stop winscp from updating the ini file (or is there any other way around this)? I need to be able to process a number of 'file transfer' queues simultaneously and I don't want to build in a restriction that makes it one file at a time - that would make the whole process extremely slow. I could have a seperate copy of the ini file for each queue but that seems over the top (i.e. maintaining 20 ini files all of which hold mostly the same information).
I'm not sure if this is an issue if I used the registry rather than an ini file but I would prefer to use ini files as this allows me better control over our (several) test environments.
Can you advise please?
I am running a number of automated simultaneous sftp transfers using winscp 4.3.7. Each transfer is called from a central dos bat file that uses a winscp command line call. The call to winscp has an ini file specified using the \ini switch.
My issue is that winscp regularly updates the [Configuration\CDCache] section of my ini file. This becomes a problem when two simultaneous transfers try to update the ini file at the same time and I get -
Can't create file 'E:\WINSCP3\4.3.7\WINSCP.INI'.
System Error. Code: 32.
The process cannot access the file because it is being used by another process
This causes me to get a failure status for the transfer.
Is there any way to stop winscp from updating the ini file (or is there any other way around this)? I need to be able to process a number of 'file transfer' queues simultaneously and I don't want to build in a restriction that makes it one file at a time - that would make the whole process extremely slow. I could have a seperate copy of the ini file for each queue but that seems over the top (i.e. maintaining 20 ini files all of which hold mostly the same information).
I'm not sure if this is an issue if I used the registry rather than an ini file but I would prefer to use ini files as this allows me better control over our (several) test environments.
Can you advise please?