asp教程:fso获取的名称指定的驱动器
这个例子演示如何使用GetDriveName方法获取的名称指定的驱动器。
<%
Set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetDriveName("c:winntcursors3dgarro.cur")
Response.Write("The drive name is: " & p)
set fs=nothing
%>
结果为.
The drive name is: c: