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

Guest

Exactly, there was a Line Feed in UserName, We've made a mistake. Sorry. Thank you very much for the immediate reply
martin

Re: Windows 7 GetFileToDirectory error

I guess that there must be a new line character in the path you pass to the method. Please check.
Post a log file, if you need further assitance.
m.gavioli

Windows 7 GetFileToDirectory error

I'm trying to get a file with session.GetFileToDirectory.
It work fine on Windows 10 but on Windows 7 it fails
The problem is that then command MLST split the remote file name into two lines so the command is not recognized by the server
How can I solve it?
> 2026-02-08 23:47:56.935 Script: get  -nopermissions -nopreservetime -transfer="ascii" -onlyfile -- "/SPED/N9109
> 2026-02-08 23:47:56.935 /CBO_N1999_20260203B7625381.TXT" "c:\DatiRx\Vega\"
. 2026-02-08 23:47:56.936 Listing file "/SPED/N9109
. 2026-02-08 23:47:56.936 /CBO_N1999_20260203B7625381.TXT".
. 2026-02-08 23:47:56.936 Retrieving file information...
> 2026-02-08 23:47:56.936 MLST /SPED/N9109
> 2026-02-08 23:47:56.936 /CBO_N1999_20260203B7625381.TXT
< 2026-02-08 23:47:56.996 250-Listing /SPED/N9109
< 2026-02-08 23:47:56.996  type=dir;modify=20260208215426; /SPED/N9109
< 2026-02-08 23:47:56.996 250 End
< 2026-02-08 23:47:56.996 500 Syntax error, command unrecognized.