取得某个指定驱动器的名称

代码:

<!DOCTYPE html>

<html>

<body>

 

<%

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

p=fs.GetDriveName("c:\winnt\cursors\3dgarro.cur")

 

Response.Write("The drive name is: " & p)

 

set fs=nothing

%>

 

</body>

</html>

结果:

The drive name is: c:

相关文章