john_vn
Oct 27th 2005, 8:02 pm
this JavaScript code cannot run, and get a deny permisson .
<body>
<%
TFile = Server.CreateObject("Scripting.FileSystemObject");
TFileStream = TFile.CreateTextFile("C:\inetpub\wwwroot\ABG\ASP\Test.txt",true);
TFileStream.WriteLine("Hello World");
TFileStream.Close();
%>
</body>
While this VBScript code runned well :
</body>
<%
set TestFile = Server.CreateObject("Scripting.FileSystemObject")
set TFileStream = TFile.CreateTextFile("C:\inetpub\wwwroot\ABG\ASP\Test.txt",true)
TFileStream.WriteLine "Hello World"
TFileStream.Close
%>
</body>
What shoul i do now so that this JavaScript code can run as same as VBScript
<body>
<%
TFile = Server.CreateObject("Scripting.FileSystemObject");
TFileStream = TFile.CreateTextFile("C:\inetpub\wwwroot\ABG\ASP\Test.txt",true);
TFileStream.WriteLine("Hello World");
TFileStream.Close();
%>
</body>
While this VBScript code runned well :
</body>
<%
set TestFile = Server.CreateObject("Scripting.FileSystemObject")
set TFileStream = TFile.CreateTextFile("C:\inetpub\wwwroot\ABG\ASP\Test.txt",true)
TFileStream.WriteLine "Hello World"
TFileStream.Close
%>
</body>
What shoul i do now so that this JavaScript code can run as same as VBScript