I need the size from downloading File (FTP) in my application in % or Size on the counter, please with a sample (application)
not the full size, only the downloading size
hope you understand!
Thanks
Johnny
Printable View
I need the size from downloading File (FTP) in my application in % or Size on the counter, please with a sample (application)
not the full size, only the downloading size
hope you understand!
Thanks
Johnny
You can use the file object to get the size of the file on your computer as it is being downloaded, an use a formula to get the percent:
Decmal Percent: 100.0/(1.0*((TOTAL SIZE)/(1.0*(CURRENT SIZE))))
Whole Number Percent: Floor(100.0/(1.0*((TOTAL SIZE*1.0)/(1.0*(CURRENT SIZE)))))
can you make please a application to look the way !
Please help me, i no understand this !
Thanks
Johnny
Need fast help for my Final Game...
I need only the downloading bytes in my application on counter or string !!!!!
Please make my a example
Thanks
Johnny
Just use the formulas I posted. All you do it\s copy, paste, and edit.
I made an example anyway.
ok this is ok, i need more then byte size of the downloading file no only the %
1. Download file start
2. always look bytes of c:/... from the downloading file
Use the "File" object. It has expressions to get the size of files.
That formula is horribly complex, just use
Floor(Edit Value( "Size Downloaded" )*100.0/Edit Value( "Size Total" ))
instead of
Floor(100.0/(1.0*((Edit Value( "Size Total" )*1.0)/(1.0*(Edit Value( "Size Downloaded" ))))))
Hmm, that doesn't display correctly/accurately for me, so that is why I use the other formula.
Oh come on, it works perfectly. ;)
Johnny, are you downloading using the FTP object? You can easily get the password of the connection - you should only use it when making general-purpose FTP clients. Plus, I'm unsure how to get the % or file size via FTP.