ActiveXObject

  • Thread starter Thread starter Oren
  • Start date Start date
O

Oren

hi all,

i'm tring to get a file size by writing:
var fso = new ActiveXObject("Scripting.FileSystemObject");

and i get the error:
Microsoft JScript runtime error: Automation server can't
create object

any ideas ?

Oren
 
If you are doing this in JavaScript on a web page, you can't access the
user's file system, which is why that is failing.
 
Back
Top