ASP DriveExists စက်တင်
ဒီပညာရှင်း/အသုံးပြုခြင်း
DriveExists စက်တင် သည် အဆိုပါ စက်ရုံး မှာ ရှိမည်လည်းကောင်း မရှိမည်လည်းကောင်း အချက်အလက် ကို လျှို့ဝှက် ပြန်ဆဲ့သည်။ စက်ရုံး ရှိမည်လည်းကောင်း အချက်အလက် ကို True ပြန်ဆဲ့သည်၊ မရှိမည်လည်းကောင်း False ပြန်ဆဲ့သည်。
စက်တင်လုပ်သည်
FileSystemObject.DriveExists(drive)
သဘောရ | ပြင်ဆင် |
---|---|
ဖော်ပြ | ဆက်က် |
သုံးစွဲသည်။ စက်ရုံးအက်ဗက် သို့မဟုတ် အပြည့်အဝါးသား လမ်းကြောင်း သတ်မှတ်သည်。
<% dim fs set fs=Server.CreateObject("Scripting.FileSystemObject") if fs.DriveExists("c:")=true then response.write("Drive c: exists!") else response.write("Drive c: does not exist.") end If set fs=nothing %>