psftp put
fails about one percent of the time with example being
local: unable to open d:\\WorkPath\\F_56MTV56201504201707224380.csv
- Calling application has needed rights to directory path where file exists and to upload file itself
- Directory path where upload file resides is not locked down. See item (1)
- csv file to be uploaded is created in C++ with fclose() function not returning EOF upon closing the file
- Directory upload path has been excluded from antivirus
- 99 out of 100 uploads work as expected
- Reuploading failed upload file by calling same batch works fine
- Solution is multithreaded
The only thing I can see doing different at this point is using lcd command with local filename and not using fully qualified path but in theory, this shouldn't change anything or am I missing something?
Example batch file:
"D:\\Program Files\\ApplicationPath\\psftp.exe" ^
1.2.3.4 -l username -pw password -batch -bc ^
-b "d:\\\\WorkPath\\\\\EXMSP35201504210946233890.script" ^
> "d:\\\\WorkPath\\\\\EXMSP35201504210946233890.script.log" 2>&1
Example script file:
put d:\\\\WorkPath\\\\EXMSP35201504210946233890.csv
bye
The D: looks like a physical disk attached to the server, however, the server, 2008R2 is on a VMWare Virtual Platform.