MCTS Programming

www.SarafMoghadam.Com

MCTS Programming

www.SarafMoghadam.Com

گرفتن اطلاعات درایو ها

Imports System.IO

For Each di As DriveInfo In DriveInfo.GetDrives()
     ListBox1.Items.Add(di.Name)
Next



DriveInfo has the following properties:

  • AvailableFreeSpace Indicates the amount of available free space on a drive
  • DriveFormat Gets the name of the file system, such as NTFS or FAT32
  • DriveType Gets the drive type
  • IsReady Indicates whether a drive is ready
  • Name Gets the name of a drive
  • RootDirectory Gets the root directory of a drive
  • TotalFreeSpace Gets the total amount of free space available on a drive
  • TotalSize Gets the total size of storage space on a drive
  • VolumeLabel Gets or sets the volume label of a drive

نظرات 0 + ارسال نظر
برای نمایش آواتار خود در این وبلاگ در سایت Gravatar.com ثبت نام کنید. (راهنما)
ایمیل شما بعد از ثبت نمایش داده نخواهد شد