ActiveXObject

Discussion in 'ASP .Net' started by Oren, Nov 23, 2003.

  1. Oren

    Oren Guest

    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
     
    Oren, Nov 23, 2003
    #1
    1. Advertising

  2. 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.

    --
    Chris Jackson
    Software Engineer
    Microsoft MVP - Windows Client
    Windows XP Associate Expert
    --
    More people read the newsgroups than read my email.
    Reply to the newsgroup for a faster response.
    (Control-G using Outlook Express)
    --

    "Oren" <> wrote in message
    news:04ea01c3b1a5$31a6a1b0$...
    > 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
     
    Chris Jackson, Nov 24, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?T3Jlbg==?=

    ListBox, ActiveXObject

    =?Utf-8?B?T3Jlbg==?=, Apr 8, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    553
    Viktor Jevdokimov
    Apr 8, 2004
  2. Nomad
    Replies:
    1
    Views:
    716
    Dominic Myers
    Sep 10, 2004
  3. Nomad
    Replies:
    0
    Views:
    970
    Nomad
    Sep 14, 2004
  4. reclusive monkey

    XMLDOM & ActiveXObject

    reclusive monkey, Jan 19, 2005, in forum: XML
    Replies:
    3
    Views:
    1,508
    reclusive monkey
    Jan 19, 2005
  5. =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=

    ActiveXObject("Shell.Application")

    =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?=, May 16, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    5,183
    Alvin Bruney [MVP]
    May 17, 2007
Loading...

Share This Page