<html>
<body>
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\web\hazirkod\test.gif"))
Response.Write("<br />")
Response.Write(fs.GetBaseName("c:\web\hazirkod\"))
Response.Write("<br />")
Response.Write(fs.GetBaseName("c:\web\"))
set fs=nothing
%>
</body>
</html>