ASP Właściwości napędu
![Folder Object Reference](/images/up.gif)
Litera dysku (litera dysku) Obiekt napędu służy do powrotu określony plik lub folder znajduje się napęd.
gramatyka
FileObject.Drive
FolderObject.Drive
FolderObject.Drive
Dla obiektu wystąpienie pliku
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\test.txt")
Response.Write("File resides on drive: ")
Response.Write(f.Drive)
set f=nothing
set fs=nothing
%>
输出:
File resides on drive: c:
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\test.txt")
Response.Write("File resides on drive: ")
Response.Write(f.Drive)
set f=nothing
set fs=nothing
%>
输出:
File resides on drive: c:
Na przykład obiekt Folder
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
Response.Write("Folder resides on drive: ")
Response.Write(fo.Drive)
set fo=nothing
set fs=nothing
%>
输出:
Folder resides on drive: c:
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\test")
Response.Write("Folder resides on drive: ")
Response.Write(fo.Drive)
set fo=nothing
set fs=nothing
%>
输出:
Folder resides on drive: c:
![Folder Object Reference](/images/up.gif)