Latest web development tutorials

ASP IsReadyプロパティ

ドライブオブジェクトリファレンス 完全なドライブオブジェクトリファレンス

IsReadyプロパティは、指定したドライブの準備ができている返します。 レディは、真であるfalseに準備ができていません。

注:対応するメディアへのアクセスを挿入したときに受け入れる準備だけリムーバブルメディアドライブ、およびCD-ROMドライブについては、IsReadyはTrueを返します。

文法

DriveObject.IsReady

<%
dim fs,d,n
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("a:")
n = "The " & d.DriveLetter
if d.IsReady=true then
n=n & " drive is ready!"
else
n=n & " drive is not ready!"
end if
Response.Write(n)
set d=nothing
set fs=nothing
%>

输出:

The A drive is not ready!


ドライブオブジェクトリファレンス 完全なドライブオブジェクトリファレンス