1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
You can generate your own custom download progress bar with this script.
$FileURL = "http://www.DailyCupOfTech.com/Downloads/TorparkSetup.exe"
$FileName = "TorparkSetup.exe"
$FileSaveLocation = FileSaveDialog("Save Location...",@ScriptDir,"All (*.*)",18,$FileName)
$FileSize = InetGetSize($FileURL)
InetGet($FileURL,$FileName,0,1)
ProgressOn("","")
While @InetGetActive
$Percentage = @InetGetBytesRead * 100 / $FileSize
ProgressSet($Percentage,"Downloaded " & @InetGetBytesRead & " of " & $FileSize & " bytes","Downloading " & $FileName)
Sleep(250)
Wend
ProgressOff()
MsgBox(0, "Done","Download Complete!") |
Partager