Hello,
I have been using WinSCP for the past 8 months now to synchronize my FTP server with my network drive. It's been working great except I noticed today that a folder hasn't been updated in 4 months. I've been doing some troubleshooting and found that WinSCP crashes when it reaches a certain file. I figured that because I received an error that said something along the lines of "Could not create file" that there was an issue creating the file because the batch file did not have Administrator privileges.
After giving the batch file admin privileges the file almost instantly closes and in the logs it says
* 2021-09-10 14:44:34.755 (EOSExtException) Error retrieving file list for "N:\Product Development\PRODUCT INFO\Product Content\*.*".
* 2021-09-10 14:44:34.755 System Error. Code: 3.
* 2021-09-10 14:44:34.755 The system cannot find the path specified
. 2021-09-10 14:44:34.755 Asking user:
. 2021-09-10 14:44:34.756 Error listing directory 'N:\Product Development\PRODUCT INFO\Product Content\*.*'. ("Error retrieving file list for ""N:\Product Development\PRODUCT INFO\Product Content\*.*"".","System Error. Code: 3.","The system cannot find the path specified")
< 2021-09-10 14:44:34.756 Script: Error listing directory 'N:\Product Development\PRODUCT INFO\Product Content\*.*'.
< 2021-09-10 14:44:34.756 Script: Error retrieving file list for "N:\Product Development\PRODUCT INFO\Product Content\*.*".
< 2021-09-10 14:44:34.756 System Error. Code: 3.
< 2021-09-10 14:44:34.756 The system cannot find the path specified
. 2021-09-10 14:44:34.757 Answer: Abort
< 2021-09-10 14:44:34.758 Script: Error listing directory 'N:\Product Development\PRODUCT INFO\Product Content\*.*'.
< 2021-09-10 14:44:34.758 Error retrieving file list for "N:\Product Development\PRODUCT INFO\Product Content\*.*".
< 2021-09-10 14:44:34.758 System Error. Code: 3.
< 2021-09-10 14:44:34.758 The system cannot find the path specified
. 2021-09-10 14:44:34.758 Script: Failed
. 2021-09-10 14:44:34.758 Script: Exit code: 1
. 2021-09-10 14:44:34.759 Disconnected from server
Without admin privileges, the batch file runs until it reaches the folder that makes it crash.
I am completely at a loss here. Is there anyone that can help me.
Attached is the batch file and the WinSCP logs.