Método ASP GetDriveName
❮ Referência Completa do Objeto FileSystemObject
O método GetDriveName retorna uma string que contém o nome da unidade do caminho especificado.
Sintaxe
FileSystemObject.GetDriveName(path)
Parameter | Description |
---|---|
path | Required. The path that will return a drive name |
Exemplo
<%
dim fs,dname
set fs=Server.CreateObject("Scripting.FileSystemObject")
dname=fs.GetDriveName("c:\test\test.htm")
Response.Write(dname)
set fs=nothing
%>
Output:
c:
❮ Referência Completa do Objeto FileSystemObject