Jump to content

Percentage progress bar in _FTP_FileGet


Go to solution Solved by Andreik,

Recommended Posts

Posted (edited)

Hello

This code work in InetGet

ProgressOn("", "Downloading ...", "0%", 100, 100, 16)
                    $url = 'https://download2.fileeagle.com/files/2022/06/Acrobat_DC_Set-Up.exe'
                    $fldr = @DesktopDir&'\Acrobat_DC_Set.exe'
                    $hInet = InetGet($url, $fldr, 1, 1)
                    $URLSize = InetGetSize($url)
                    While Not InetGetInfo($hInet, 2)
                        Sleep(200)
                        $Size = InetGetInfo($hInet, 0)
                        $Percentage = Int($Size / $URLSize * 100)
                        ProgressSet($Percentage,$Percentage & " %")
                    WEnd
                    ProgressOff()

I need on _FTP_FileGet

I tried and it didn't work

_FTP_FileGet($hConn  , 'MyFile','MyFile')

 

Edited by ahmeddzcom

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...