Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
egabriel

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?
martin

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

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
egabriel

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?