iis-write file
iis-file
inf : http://www.w3schools.com/asp/met_write.asp
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.CreateTextFile("c:\test.txt",true)
f.write("Hello World!")
f.write("How are you today?")
f.close
set f=nothing
set fs=nothing
%>
Set permission
To been able to run a public asp.net site with IIS,
each file on the directory must have permissions for two accounts.
One account that is permitted for public access,
and the account that assigned to that application pool have.
http://stackoverflow.com/questions/16677887/how-to-set-correct-file-permissions-for-asp-net-on-iis
沒有留言:
張貼留言