How can I write text files on c:? I can create files on d: but why not on the other? Maybe there's some restriction on that.
Here's my code
openTxt.html
<html><head>
<script language="javascript">
function WriteToFile()
{
var fso = new ActiveXObject("Scripting.FileSystemObject");
var FileObject = fso.OpenTextFile("C:\\LogFile.txt", 8, true,0); // 8=append, true=create if not exist, 0 = ASCII
FileObject.write("hey!")
FileObject.close()
}
</script>
</head>
<body onLoad="WriteToFile()">
</body>
</html>