Answer the question
In order to leave comments, you need to log in
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);
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question