Metoda GetDrive ASP

Definicja i użycie

Metoda GetDrive może zwrócić obiekt Drive określony przez parametr drivespec.

Słowa kluczowe:

FileSystemObject.GetDrive(drivespec)
parametr opis
drivespec Obowiązkowe. Może być litera napędu (c), lub litera napędu z kropką, lub litera napędu z kropką i separatorem ścieżki, lub jakakolwiek normatywna sieciowa shared. (\\computer2\share1).

Przykład

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