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 ...
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);
...
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...
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...
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...
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 ...
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.