ASP Get the root folder of a specified drive
Get the root folder of a specified drive
<html>
<body>
<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:")
Response.Write("Rootfolder name: " & d.RootFolder)
set d=nothing
set fs=nothing
%>
</body>
</html>