ASP Get the name of the parent folder of a specified path

Get the name of the parent folder of a specified path

<html>
<body>

<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:\test\file.txt")

Response.Write("Parent folder name: " & p)

set fs=nothing
%>

</body>
</html>