ASP IsReady သုံးမှုန်း
အဆိုပါ
IsReady သုံးမှုန်း က အမှတ်ချက် ဒိုက်ကျန်းတိုက် ကို ပြီးခဲ့ပြီးဖြစ်လျှင် true ဖြစ် မဟုတ် အမှတ်ချက် ဒိုက်ကျန်းတိုက် ကို မပြီးခဲ့သေးသဖြင့် false ပြန်ကြားသည်。
အသုံးပြုခြင်းလည်ပတ်မှုအသင်း နှင့် CD-ROM လည်ပတ်မှု ဒိုက်ကျန်းတိုက်မှာ သာသနာတိုက် ပါဝင်နေသောအခါနှင့် ပါဝင်နေသောအခါမှာ IsReady က အပြည့်အဝင် ပြန်ကြားသည်。
ဘာသာ
DriveObject.IsReady
သဘော
<% dim fs,d,n set fs=Server.CreateObject("Scripting.FileSystemObject") set d=fs.GetDrive("a:") n = "The " & d.DriveLetter if d.IsReadytrue ဖြစ်လျှင် n=n & " drive is ready!" else n=n & " drive is not ready!" end if Response.Write(n) set d=nothing set fs=nothing %>
Output:
The A drive is not ready!