ASP GetDrive နည်းလမ်း

အသုံးပြုခြင်းနှင့်ဖော်ပြ

GetDrive နည်းလမ်းကို drivespec ပြင်ဆင်ခြင်းကိုအခြေခံ၍ Drive အဖွဲ့ကိုပြန်လည်သတ်မှတ်သည်。

လိုအပ်သည်

FileSystemObject.GetDrive(drivespec)
ပြင်ဆင်ခြင်း ဖော်ပြ
drivespec တစ်ခုခုအားဖြင့်လိုအပ်သည်။ လိုက်ဖက်သမင်တစ်ခုကို(c)ဖြင့်သို့မဟုတ် အရိုးတစ်ခုကိုပိုင်းကျင်းသွားနိုင်သည်၊ အရိုးနှင့်လမ်းတီးသွားသည်၊ လမ်းတီးသွားနှင့်ပြဿနာကွဲခြားသည်၊ သို့မဟုတ် ကွန်တိတ်လွှတ်တင်ခွင့်ခံထားသည်(\\computer2\share1)ဖြင့်သို့မဟုတ်。

အကျိုး

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