Connecting Tech Pros Worldwide Forums | Help | Site Map

Creating a file

Mark
Guest
 
Posts: n/a
#1: Jul 23 '05
It there another was to do this
var fso = new ActiveXObject('Scripting.FileSystemObject');

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



Thanks
Mark



Martin Honnen
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Creating a file




Mark wrote:
[color=blue]
> It there another was to do this
> var fso = new ActiveXObject('Scripting.FileSystemObject');
>
> 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
http://JavaScript.FAQTs.com/
Closed Thread