Windows 7 GetFileToDirectory error

Advertisement

m.gavioli
Guest

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,686
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum