501 Invalid number of arguments MLST when run a simple GUI generated script
Hello I am new to scripting for WINSCP.
I am able to connect to my FTP server through the GUI and download files through the GUI.
Taking the advice of the documentation I used the GUI to generate a very simple script and I ran it from the command line.
The Script will connect me to the Server but when it tries to execute the "get" command I get this message in the log file
< 2017-05-31 12:14:06.319 257 "/users/Eliese Gabriel/reas_listingtrends" is current directory
< 2017-05-31 12:14:06.319 Script: /users/Eliese Gabriel/reas_listingtrends
> 2017-05-31 12:14:06.319 Script: lcd C:\Users\BMG\Documents\WINSCP
< 2017-05-31 12:14:06.319 Script: C:\Users\BMG\Documents\WINSCP
> 2017-05-31 12:14:06.319 Script: get cbsa_zip_apr.txt
. 2017-05-31 12:14:06.319 Listing file "cbsa_zip_apr.txt".
. 2017-05-31 12:14:06.319 Retrieving file information...
> 2017-05-31 12:14:06.319 MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
2017-05-31 12:14:06.366 501 Invalid number of arguments MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
. 2017-05-31 12:14:06.366 Could not retrieve file information
< 2017-05-31 12:14:06.366 Script: Can't get attributes of file 'cbsa_zip_apr.txt'.
< 2017-05-31 12:14:06.366 Could not retrieve file information
< 2017-05-31 12:14:06.366 Invalid number of arguments MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
. 2017-05-31 12:14:06.366 Script: Failed
. 2017-05-31 12:14:06.366 Script: Exit code: 1
. 2017-05-31 12:14:06.366 Disconnected from server
I have attached the VERY SIMPLE script... what really silly mistake am I making?
I am able to connect to my FTP server through the GUI and download files through the GUI.
Taking the advice of the documentation I used the GUI to generate a very simple script and I ran it from the command line.
The Script will connect me to the Server but when it tries to execute the "get" command I get this message in the log file
< 2017-05-31 12:14:06.319 257 "/users/Eliese Gabriel/reas_listingtrends" is current directory
< 2017-05-31 12:14:06.319 Script: /users/Eliese Gabriel/reas_listingtrends
> 2017-05-31 12:14:06.319 Script: lcd C:\Users\BMG\Documents\WINSCP
< 2017-05-31 12:14:06.319 Script: C:\Users\BMG\Documents\WINSCP
> 2017-05-31 12:14:06.319 Script: get cbsa_zip_apr.txt
. 2017-05-31 12:14:06.319 Listing file "cbsa_zip_apr.txt".
. 2017-05-31 12:14:06.319 Retrieving file information...
> 2017-05-31 12:14:06.319 MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
2017-05-31 12:14:06.366 501 Invalid number of arguments MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
. 2017-05-31 12:14:06.366 Could not retrieve file information
< 2017-05-31 12:14:06.366 Script: Can't get attributes of file 'cbsa_zip_apr.txt'.
< 2017-05-31 12:14:06.366 Could not retrieve file information
< 2017-05-31 12:14:06.366 Invalid number of arguments MLST /users/Eliese Gabriel/reas_listingtrends/cbsa_zip_apr.txt
. 2017-05-31 12:14:06.366 Script: Failed
. 2017-05-31 12:14:06.366 Script: Exit code: 1
. 2017-05-31 12:14:06.366 Disconnected from server
I have attached the VERY SIMPLE script... what really silly mistake am I making?