ASP GetDrive 메서드

정의와 사용법

GetDrive 메서드는 drivespec 파라미터에 의해 지정된 Drive 객체를 반환합니다。

문법:

FileSystemObject.GetDrive(drivespec)
파라미터 설명
drivespec 必需的。可以是驱动器字母(c),或者带有冒号的驱动器字母,或者带有冒号和路径分隔符的驱动器字母,或者任何网络共享规范(\\computer2\share1)。

예제

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