What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get File Size

Get File Size
Author: Message:
neohunter
Junior Member
**


Posts: 38
Joined: Aug 2006
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 ?
09-15-2006 05:10 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Get File Size - by neohunter on 09-15-2006 at 05:10 PM
RE: Get File Size - by CookieRevised on 09-15-2006 at 05:14 PM
RE: Get File Size - by neohunter on 09-15-2006 at 05:22 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On