L
L
lightalex2014-10-19 22:06:59
JavaScript
lightalex, 2014-10-19 22:06:59

How to resolve Scripting.FileSystemObject?

Hello!
I want to test the creation of JavaScript files
But I ran into a problem
In the code below, Chrome swears at the line fso = new ActiveXObject("Scripting.FileSystemObject");

var fso, ts;
var ForWriting= 2;
fso = new ActiveXObject("Scripting.FileSystemObject");
ts = fso.OpenTextFile("created.php", ForWriting, true);

After walking around, I found out that it is necessary to allow the execution of Scripting.FileSystemObject in the browser settings.
But I have not been able to google it (
Who knows how to allow it?
Or how to execute this script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2014-12-04
@lightalex

As far as I know, this is not possible. First, Scripting.FileSystemObject is ActiveX, only IE uses them. Secondly, JS is executed in a sandbox from which there is no way out by definition.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question