VBScript Help - Displaying Size varibles

November 19, 2009 at 04:18:18
Specs: Windows XP
Hiya ...
I have a script that scans a folder and all sub folders for files last accessed 14 days ago and deleted then and prints out to a text file log.

So face i can get the size of each file using objFile.Size and then add them up to give me a total using

size = size + objFile.Size and it works fine and its gives me the total of 568546745
how can i get it to display as KB, MB, GB instead of just bytes ?

See More: VBScript Help - Displaying Size varibles

Report •

November 19, 2009 at 08:39:37
I think that if you simply divide by 1023 for each increment will work but try this instead.


Report •
Related Solutions

Ask Question