| || |
File Size Comaprision
I Need to test a feature where I need to compare the Size of Installer say for Game1 and source folder of game1, the requirement says that the difference should not exceed 1 MB.
I tried by capturing the Size from right Click-Properties on files, but it is capturing as 5.73 MB (6,009,123 bytes)(installer size), this is treated as a string and How can I make a comparision with 8.72 MB (9,146,368 bytes) (folder size). I had searched in the forum, but i could see comparision between two File contents but not the size comparision.
Any input are appreciated.
Re: File Size Comaprision
Extract the information first. You can use functions like Split, Mid, Left, Right.
Once you have the string you can use CINT to convert the string into int or CLNG for long and then compare.