ASP Drive Object
Drive object ကို local disk drive သို့မဟုတ် network share တစ်ခုအကြောင်း အချက်အလက်များ ရယူရန် အသုံးပြုပါသည်။
နောက်ထပ် ဥပမာများ
စုစုပေါင်းအရွယ်အစားကို ရယူနည်း။
ရနိုင်သောနေရာကို ရယူနည်း သတ်မှတ်ထားသော drive တစ်ခု၏ ရနိုင်သောနေရာကို ရယူနည်း။
ကို ရယူနည်း သတ်မှတ်ထားသော drive တစ်ခု၏ နေရာလွတ်ကို ရယူနည်း။
၏ drive letter ကိုရယူနည်း သတ်မှတ်ထားသော drive တစ်ခု၏ drive letter ကိုရယူနည်း။
၏ drive အမျိုးအစားကို ရယူနည်း သတ်မှတ်ထားသော drive အမျိုးအစားကို ရယူနည်း။
ဖိုင်စနစ်ရယူနည်း။
သတ်မှတ်ထားသော drive အဆင်သင့်ဖြစ်မဖြစ် စစ်ဆေးနည်း။
လမ်းကြောင်းကိုရယူနည်း။
root ဖိုဒါကိုရယူနည်း။
အမှတ်စဉ်နံပါတ်ကို ရယူနည်း။
Drive Object ၊
Drive object ကို local disk drive သို့မဟုတ် network share တစ်ခုအကြောင်း အချက်အလက်ပြန်ပို့ရန်အတွက် အသုံးပြုပါသည်။ Drive အရာဝတ္ထုသည် drive တစ်ခု၏ ဖိုင်စနစ်အမျိုးအစား၊ နေရာလွတ်၊ အမှတ်စဉ်နံပါတ်၊ အသံအတိုးအကျယ်အမည်နှင့် အခြားအရာများအကြောင်း အချက်အလက်များကို ပြန်ပေးနိုင်ပါသည်။
မှတ်ချက်- Drive အရာဝတ္တုနှင့် ဒရိုက်ဗ်၏ အကြောင်းအရာနှင့် ပတ်သက်သည့် အချက်အလက်ကို သင်သည် ပြန်မရနိုင်ပါ။ ဤရည်ရွယ်ချက်အတွက် သင်သည် Folder အရာဝတ္ထုကို အသုံးပြုရမည်ဖြစ်ပါသည်။
Drive အရာဝတ္တု၏ ဂုဏ်သတ္တိများနှင့် အလုပ်လုပ်ရန်၊ FileSystemObject အရာဝတ္ထုမှတစ်ဆင့် Drive အရာဝတ္ထု၏ ဥပမာတစ်ခုကို ဖန်တီးရမည်ဖြစ်ပါသည်။ ပထမ၊ FileSystemObject အရာဝတ္တုကိုဖန်တီးပြီး GetDrive နည်းလမ်း သို့မဟုတ် FileSystemObject အရာဝတ္တု၏ Drives ပိုင်ဆိုင်မှုမှတဆင့် Drive အရာဝတ္တုကို ချက်ချင်းလုပ်ဆောင်ပါ။
Drive object ၏ ဂုဏ်သတ္တိများကို အောက်တွင် ဖော်ပြထားပါသည်။
သတ္တိ
Property | Description |
---|---|
AvailableSpace | Returns the amount of available space to a user on a specified drive or network share |
DriveLetter | Returns one uppercase letter that identifies the local drive or a network share |
DriveType | Returns the type of a specified drive |
FileSystem | Returns the file system in use for a specified drive |
FreeSpace | Returns the amount of free space to a user on a specified drive or network share |
IsReady | Returns true if the specified drive is ready and false if not |
Path | Returns an uppercase letter followed by a colon that indicates the path name for a specified drive |
RootFolder | Returns a Folder object that represents the root folder of a specified drive |
SerialNumber | Returns the serial number of a specified drive |
ShareName | Returns the network share name for a specified drive |
TotalSize | Returns the total size of a specified drive or network share |
VolumeName | Sets or returns the volume name of a specified drive |