كائن محرك ASP
يتم استخدام كائن محرك الأقراص للحصول على معلومات حول محرك الأقراص المحلي أو مشاركة الشبكة.
مزيد من الأمثلة
كيفية الحصول على الحجم الإجمالي لمحرك الأقراص المحدد.
. كيفية الحصول على المساحة المتوفرة لمحرك أقراص محدد.
كيفية الحصول على المساحة الحرة لمحرك الأقراص المحدد.
. كيفية الحصول على حرف محرك الأقراص لمحرك أقراص محدد.
كيفية الحصول على نوع محرك الأقراص لمحرك الأقراص المحدد.
. كيفية الحصول على نظام الملفات لمحرك أقراص محدد.
كيفية التحقق مما إذا كان محرك الأقراص المحدد جاهزًا.
كيفية الحصول على مسار محرك الأقراص المحدد.
كيفية الحصول على المجلد الجذر لمحرك أقراص محدد.
كيفية الحصول على الرقم التسلسلي لمحرك الأقراص المحدد.
كائن محرك
يتم استخدام كائن محرك الأقراص لإرجاع معلومات حول محرك الأقراص المحلي أو مشاركة الشبكة. يمكن أن يعرض كائن Drive معلومات حول نوع محرك الأقراص لنظام الملفات ، والمساحة الخالية ، والرقم التسلسلي ، واسم وحدة التخزين ، والمزيد.
ملاحظة: لا يمكنك إرجاع معلومات حول محتوى محرك الأقراص مع كائن محرك الأقراص. لهذا الغرض سيكون عليك استخدام كائن المجلد.
للعمل مع خصائص كائن Drive ، سيكون عليك إنشاء مثيل لكائن Drive من خلال كائن FileSystemObject. أولا؛ إنشاء كائن FileSystemObject ومن ثم إنشاء كائن محرك الأقراص من خلال أسلوب GetDrive أو خاصية محركات الأقراص للكائن FileSystemObject.
خصائص كائن Drive موضحة أدناه:
الخصائص
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 |