Sign in

Similar Content

I have used this code for a long time, but for a week or 2 it stopped working?
Connection is ok, the put create the file on server if I delete it on the FTP server, but the file is empty and after 30 secondees the function return 0
I have tested on 2 machines, Filezilla FTP client have no issue to the server.
Firewall is disabled under test.
If $writeFTP = True Then
$Open=_FTPOpen('MyFTP Control')
$Conn=_FTPConnect($Open, $destinationServer, $destinationUsername, $destinationPass)
MsgBox(0,"start","start")
$Ftpp=_FtpPutFile($Conn, $filePath&$name&".json", "httpdocs/p_calender/" & $name & ".json")
MsgBox(0,"return","return"&$Ftpp)
Exit
$Ftpc=_FTPClose($Open)
EndIf

When on list there is for example 20 files then first two of them are very fast checked and reported they FileSize.
After 2 files there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0
again there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0
again there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0
again there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0
again there is about 20 sec stop....... and next two files are checked with no errors but FileSize == 0
.......

In time when I process investigation I checked how : _FTP_ListToArray2D and _FTP_ListToArrayEx works and I was shocked that they works super fast.

Here are the questions:
Q1: Why does the problem occur only on WD MyCloud NAS?
Q2: What is the significant difference that makes using _FTP_ListToArray2D and _FTP_ListToArrayEx to retrieve file sizes is still fast?
Q3: Why _FTP_FileGetSize() not reporting @errors but returned FileSize = 0

Here a small tool I wrote to update my Sysinternal tools collection without the need to download always the whole package or visiting the site to check for updates. I know that there are several tools available (also some tools written in AutoIt) but here another one for the collection. It was good exercise for me to code it.

Some files from cannot be downloaded although they are visible on the web site!

So I was playing with INet and downloading files and made a simple video downloader, or it can even be used for any file really.
Just follow the reference section in INet_Settings.ini , and then run the script.