asp教程:fso获取的名称指定的驱动器

作者:简简单单 2008-10-31

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:

转载请注明来自http://www.111com.net/asp/asp.html

相关文章

精彩推荐