<html> <body> <% Set fs=Server.CreateObject("Scripting.FileSystemObject") p=fs.GetParentFolderName("c:\web\hazirkod\test.gif") Response.Write("Dosyanın bulunduğu klasör: " & p) set fs=nothing %> </body> </html>