| re: Check directory/file protection?
Bill wrote on 28 okt 2005 in microsoft.public.inetserver.asp.general:[color=blue]
> "Evertjan." <exjxw.hannivoort@interxnl.net> wrote in message
> news:Xns96F3EE53984F2eejj99@194.109.133.242...[color=green]
>> Bill wrote on 18 okt 2005 in microsoft.public.inetserver.asp.general:
>>[color=darkred]
>> > Using ASP in a VBScript environment,[/color]
>>
>> I suppose VBscript on an ASP platform?
>>[color=darkred]
>> > how can I check the protection on
>> > a directory, or a particular file?[/color]
>>
>> <%
>> 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>[/color][/color]
[color=blue]
> Well, that tells me if it exists, but it doesn't return the
> directory/file protection, does it?[/color]
I don't think you can get that, exept by trial and error.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress) |