O.P. Get File Size
Buenas =D!
Hi, i want to get the file size of a file...
im downloading a image from internet and want to put it as display picture, i generate the image on the server side using GD library, normally everithing its ok, but sometimes failed and the script returns me a error. so i want to check the filesize before put it as display picture.
this is what i think that should work...
var fileso = new ActiveXObject("Scripting.FileSystemObject");
fileso.GetFile("C:\\dp.jpg");
MsgPlus.DisplayToast("UnionRo 2.0","FileSize: " + fileso.Size);
But retuns me a message say: Filesize: undefeined
whats the problem? any other way to obtain the file size? may using wscript.shell ?
|