501 Invalid number of arguments MLST when run a simple GUI generated script

Advertisement

egabriel
Joined:
Posts:
2

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?
Description: This is the script minus the connection data

Reply with quote

Advertisement

egabriel
Joined:
Posts:
2

Re: 501 Invalid number of arguments MLST when run a simple GUI generated script

martin wrote:

It's probably a server-side bug.

What FTP server is that?

I had a similar (if not identical) report recently:
https://winscp.net/forum/viewtopic.php?t=24830

It is the ftp site: ftp.corelogicreas.com
I suppose the next step would be to try to connect to a different server using this same very simple script....
Is there any other command besides "get" that would work for this server?
Am I better off trying .NET?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,552
Location:
Prague, Czechia

Re: 501 Invalid number of arguments MLST when run a simple GUI generated script

egabriel wrote:

I suppose the next step would be to try to connect to a different server using this same very simple script....
Yes. Or avoid using spaces in file/directory names.

Is there any other command besides "get" that would work for this server?
Am I better off trying .NET?
WinSCP just cannot work with this server, if there are spaces in the paths.

Reply with quote

Advertisement

You can post new topics in this forum