取得指定驱动器的路径

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

dim fs,d

set fs=Server.CreateObject("Scripting.FileSystemObject")

set d=fs.GetDrive("c:")

Response.Write("The path is " & d.Path)

set d=nothing

set fs=nothing

%>

 

</body>

</html>

结果:

The path is C:

相关文章