The follwoing code works fine when the script resides on the c:
<SCRIPT LANGUAGE=JScript>
<!--
function writeToDisk(writeString) {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\testFile.txt", true);
a.WriteLine(writeString);
a.Close();
}
//-->
</SCRIPT>
But when I move it to a network drive (z), it will not work.
I have tried making the path "c:\\testFile.txt", and "z:\\testFile.txt",.
but the script only works when it's on the local drive.
Any ideas?
<SCRIPT LANGUAGE=JScript>
<!--
function writeToDisk(writeString) {
var fso = new ActiveXObject("Scripting.FileSystemObject");
var a = fso.CreateTextFile("c:\\testFile.txt", true);
a.WriteLine(writeString);
a.Close();
}
//-->
</SCRIPT>
But when I move it to a network drive (z), it will not work.
I have tried making the path "c:\\testFile.txt", and "z:\\testFile.txt",.
but the script only works when it's on the local drive.
Any ideas?