Bill wrote on 28 okt 2005 in microsoft.public.inetserver.asp.general:
> "Evertjan." <> wrote in message
> news:Xns96F3EE53984F2eejj99@194.109.133.242...
>> 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>
> Well, that tells me if it exists, but it doesn't return the
> directory/file protection, does it?
I don't think you can get that, exept by trial and error.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
|