自强学堂
自强学堂:学习、分享、让你更强!
ASP 实例HTMLCSSJAVASCRIPTJQUERYSQLPHPBOOTSTRAPANGULARXML
 

ASP GetDrive 方法

FileSystemObject 对象参考手册 完整的 FileSystemObject 对象参考手册

GetDrive 方法返回由 drivespec 参数规定的 Drive 对象。

语法

FileSystemObject.GetDrive(drivespec)

参数描述
drivespec必需的。可以是驱动器字母(c),或者带有冒号的驱动器字母(c:),或者带有冒号和路径分隔符的驱动器字母(c:\),或者任何网络共享规范(\\computer2\share1)。

实例

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("c:\")
set fs=nothing
%>


FileSystemObject 对象参考手册 完整的 FileSystemObject 对象参考手册