Bill wrote on 18 okt 2005 in microsoft.public.inetserver.asp.general:
Using ASP in a VBScript environment,
I suppose VBscript on an ASP platform?
how can I check the protection on
a directory, or a particular file?
<%
file = "myDir/theFile.txt"
set fso = CreateObject("Scripting.FileSystemObject")
if fso.fileExists(server.MapPath("/" & file)) then
response.write "exists."
else
response.write "does not exist."
end if
set fso = nothing
%>
from: <http://www.aspfaq.com/show.asp?id=2351>
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)