Can't get attributes of file 'file.txt'.
I'm executing Winscp.com using a command file. I've created a session in Winscp.exe with the connection info. In the command file I have the following:
option batch abort option confirm off open CLIENT_SESSION lcd E:\TEMP\edi get file.txt exit
2018-06-11 15:28:23.043 Using FTP protocol. . 2018-06-11 15:28:23.043 Doing startup conversation with host. > 2018-06-11 15:28:23.043 PWD < 2018-06-11 15:28:23.090 257 "/D:/bbsfiles" is current directory. . 2018-06-11 15:28:23.090 Changing directory to "/D:/bbsfiles". > 2018-06-11 15:28:23.090 CWD /D:/bbsfiles < 2018-06-11 15:28:23.121 250 Directory changed to /D:/bbsfiles . 2018-06-11 15:28:23.121 Getting current directory name. > 2018-06-11 15:28:23.121 PWD < 2018-06-11 15:28:23.168 257 "/D:/bbsfiles" is current directory. . 2018-06-11 15:28:23.168 Startup conversation with host finished. < 2018-06-11 15:28:23.168 Script: Active session: [1] CLIENT_SESSION > 2018-06-11 15:28:23.168 Script: lcd E:\TEMP\edi < 2018-06-11 15:28:23.168 Script: E:\TEMP\edi > 2018-06-11 15:28:23.168 Script: get file.txt . 2018-06-11 15:28:23.168 Listing file "file.txt". . 2018-06-11 15:28:23.168 Retrieving file information... > 2018-06-11 15:28:23.168 MLST /D:/bbsfiles/file.txt < 2018-06-11 15:28:23.214 250-Listing /D:/bbsfiles/file.txt < 2018-06-11 15:28:23.214 Type=file;Size=26832;Modify=20180611194500.964; file.txt < 2018-06-11 15:28:23.214 250 End . 2018-06-11 15:28:23.214 Type=file;Size=26832;Modify=20180611194500.964; file.txt . 2018-06-11 15:28:23.214 Retrieving file information successful < 2018-06-11 15:28:23.214 Script: Can't get attributes of file 'file.txt'. < 2018-06-11 15:28:23.214 Script: File or folder 'file.txt' does not exist. . 2018-06-11 15:28:23.214 Script: Failed . 2018-06-11 15:28:23.214 Script: Exit code: 1 . 2018-06-11 15:28:23.230 Disconnected from server
Any ideas?[/code]