A couple of years ago I converted a VB6 program to VB.NET. The original used the INET control which in VB.NET became an AxInetCtlsObjects.AxInet object.
The following code executes the SIZE test.txt command and assigns the returned value to MySize.
Dim aInet As AxInetCtlsObjects.AxInet
Dim MySize as Long
aInet.Execute(aInet.URL, SIZE test.txt, "", "")
MySize = CLng(Trim(aInet.GetChunk(32)))
If the actual file size of test.txt is less then 4294967296 bytes [=2(32)], MySize gets the correct value. If the file is larger than that, mysize keeps getting 4294967295.
However, when I logon to our FTP site and execute SIZE text.txt command from command prompt directly, it has no problem.
Is this a bug in AxInetCtlsObjects.AxInet or something I missing.