Creating a file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    Creating a file

    It there another was to do this
    var fso = new ActiveXObject(' Scripting.FileS ystemObject');

    Im trying to run a javascript file automatically, but it complains that I
    have to say YES to Active X.



    Thanks
    Mark


  • Martin Honnen

    #2
    Re: Creating a file



    Mark wrote:
    [color=blue]
    > It there another was to do this
    > var fso = new ActiveXObject(' Scripting.FileS ystemObject');
    >
    > Im trying to run a javascript file automatically, but it complains that I
    > have to say YES to Active X.[/color]

    If you are on Windows and want script to access the file system then
    consider using a HTML application (.hta file), if you save that locally
    and then start it script in it can access the file system or do other
    stuff script inside a browser is usually not allowed. Of course if you
    put your .hta on a web server others would need to download it and run
    it locally too to have the script access the file system.

    --

    Martin Honnen

    Comment

    Working...