Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. specify the drive

specify the drive

Scheduled Pinned Locked Moved C#
performance
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tnaveen
    wrote on last edited by
    #1

    how can show the drives with memory and to install an application in particular drive

    naveen

    A 1 Reply Last reply
    0
    • T tnaveen

      how can show the drives with memory and to install an application in particular drive

      naveen

      A Offline
      A Offline
      Ajay k_Singh
      wrote on last edited by
      #2

      You may check free space of any drive by using an object of System.IO.DriveInfo class. Therefore following line will provide you free disk space provided on c drive- System.IO.DriveInfo dr= new System.IO.DriveInfo("C:\\"); long FreeSpace= dr.AvailableFreeSpace; In case if you need to know about all logical drives available on a system, you may use Environment.GetLogicalDrives() method. This will return you a string array containing all logical drives available on a system. Such as – string[] drives = Environment.GetLogicalDrives(); I hope this helps. -Dave.

      Dave Traister, ComponentOne LLC. www.componentone.com

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups