FTP problem on Windows 10

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Nicola70
Newbie
Posts: 2
Joined: Wed Sep 16, 2015 1:09 pm

FTP problem on Windows 10

Post by Nicola70 » Wed Sep 16, 2015 1:19 pm

Hi!
I'm trying to read a file list from a remote server, with FTPGetDirList:

Code: Select all

FTPGetDirList>ftpserver,ftpuser,ftppasswd,21,local_path,ftp_path,,L
(local_path does include file name).

I have a sub for manage the connection error:

Code: Select all

srt>controllo_ftp
if>FTP_RESULT<>{"Success"}
GetDate>date
GetTime>time
Let>msg="L'automa si e' arrestato perche' ci sono problemi con il server FTP. Data :"
ConCat>msg,date
Concat>msg," Ora: "
Concat>msg,time
Concat>msg," - "
Concat>msg,FTP_RESULT
MessageModal>msg
exit>0
endif>
END>controllo_ftp
Everything works fine on Windows 7.

On Windows 10, FTP_RESULT does not give "success", but instead "226-transfer complete" (see image).
And the file is not created!

I have tried to switch off Windows Firewall, but nothing happens.

It seems something related to Windows 10.

Any idea?

Thanks! ;-)

Image

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: FTP problem on Windows 10

Post by Marcus Tettmar » Fri Sep 18, 2015 2:57 pm

Hi,

I am unable to replicate a problem in Windows 10. I can't see any reason why FTP should be different on Windows 10. Unless of course your Windows firewall is configured differently.

Here's a little test script which reads the directory listing and downloads putty.exe from the official putty download area:

Code: Select all

Let>FTP_PASSIVE=1

//get directory list
FTPGetDirList>ftp.chiark.greenend.org.uk,anonymous,[email protected],21,%SCRIPT_DIR%\dir.txt,/users/sgtatham/putty-latest/x86,*.exe,L

ReadFile>%SCRIPT_DIR%\dir2.txt,file

//download putty ... 
FTPGetFile>ftp.chiark.greenend.org.uk,anonymous,[email protected],21,%SCRIPT_DIR%\putty.exe,/users/sgtatham/putty-latest/x86,putty.exe,I
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Nicola70
Newbie
Posts: 2
Joined: Wed Sep 16, 2015 1:09 pm

Re: FTP problem on Windows 10

Post by Nicola70 » Fri Sep 18, 2015 3:05 pm

Oh oh... it works!
...and seems that the "magic" command that was missing in my script, is this:

Code: Select all

Let>FTP_PASSIVE=1
I put this in my script, et voilà, worked perfectly.
Don't know why Windows 7 did not need that.
Thank you, Marcus. ;-)

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts