driveinfo Questions

8

Solved

I'm using the DriveInfo class in my C# project to retrieve the available bytes on given drives. How to I correctly convert this number into Mega- or Gigabytes? Dividing by 1024 will not do the job ...
Earthquake asked 19/2, 2009 at 15:3

3

Solved

Good morning, is there a way to get a DriveInfo instance for UNC paths (e.g. "\fors343a.ww123.somedomain.net\folder\1\") because for example... var driveInfo = new System.IO.DriveInfo(drive); ...
Landholder asked 24/3, 2009 at 9:56

3

I can view a remotly connected pc from this article:Remote Desktop using c-net . but i dont need it. I just have to connect with that pc and get the free space data of C drive. How could i do this?...
Crescendo asked 21/1, 2013 at 16:26

2

I'm creating a WPF app that among other things should check for the existence of several mapped drives. The code is straightforward: DriveInfo[] systemDrives = DriveInfo.GetDrives(); foreach (Driv...
Kingfisher asked 29/6, 2012 at 20:10

4

Solved

I have a txt file with volume id's in it. I need to get drive info (drive letter, drive size, etc.) from the drive volume id (Windows): the volume id is in the following format: \\?\Volume{XXXXX...
Shipowner asked 17/4, 2012 at 6:33

2

Solved

I have a program that tells me all the hard disks/ usb's, but it only tells me the drive letter not the name. Here is what I have: DriveInfo[] drives = DriveInfo.GetDrives(); Console.WriteLine("De...
Stamper asked 4/10, 2013 at 15:57

3

Solved

I tried using WMI to detect new media insertion in Disk Drive using following code. But is there managed solution like using loop in background thread with DriveInfo.GetDrives? Which is best way to...
Stylet asked 25/4, 2013 at 6:12

2

Solved

I am working on a small utility where I would like to change the volume label on flash drives that are connected to the computer. I know that DriveInfo is capable of doing it but I am at a loss as ...
Jochebed asked 13/5, 2011 at 22:55

2

I am trying to list all local drives in my application, and DriveInfo.GetDrives give back the local drive letters, and I need the mapped drives too. Currently I have: C:, D:, and G: (HDD), E: and ...
Laomedon asked 13/12, 2009 at 23:28

3

Solved

I want to get the list of removable disk in c#. I want to skip the local drives. Because i want the user to save the file only in removable disk.
Geibel asked 14/7, 2009 at 9:56
1

© 2022 - 2024 — McMap. All rights reserved.