Questions tagged [drives]

55 questions
19
votes
7 answers

Enumerating all available drive letters in Windows

I want to enumerate all available drive letters (which aren't already taken) in Windows using VC++. How can I do this?
sharkin
  • 12,162
  • 24
  • 86
  • 122
14
votes
3 answers

Delphi - How to get list of USB removable hard drives and memory sticks?

In my application (Delphi), I need to list all the USB storage devices. These can be either flash memory sticks or external storage drives. There is a Jvcl component JvDriveCombo, and it has the DriveType property - the problem is if I select…
Harry Pierce
  • 143
  • 1
  • 1
  • 5
8
votes
4 answers

Does the transaction log drive need to be as fast as the database drive?

We are telling our client to put a SQL Server database file (mdf), on a different physical drive than the transaction log file (ldf). The tech company (hired by our client) wanted to put the transaction log on a slower (e.g. cheaper) drive than the…
Clinemi
  • 906
  • 6
  • 20
  • 33
8
votes
8 answers

Advertised disk space vs actual disk space

Why is it that advertised disk space is almost always higher than the disk space reported by the UI? For example, I have an "80 gb" hard drive, but the iTunes UI indicates only 74. I usually see this as well with hard disks and the amount reported…
Jeremy
  • 9,023
  • 20
  • 57
  • 69
7
votes
1 answer

Ruby Get Available Disk Drives

Can anyone tell me how I can get a list of the available disk drives in ruby? I am creating an open file dialogue and need to know! Thanks in advance, ell.
Ell
  • 4,238
  • 6
  • 34
  • 60
7
votes
2 answers

Listing All Physical Drives (Windows)

How can I get all the physical drive paths (\\.\PhysicalDriveX) on a Windows computer, with C/C++? The answers in this question suggest getting the logical drive letter, and then getting the physical drive corresponding to that mounted drive. The…
hetelek
  • 3,776
  • 5
  • 35
  • 56
5
votes
1 answer

Getting icons of Drives and Directories: Icon.ExtractAssociatedIcon(filePath) doesn't work?

If Icon.ExtractAssociatedIcon(filePath) is the only way to get icons in .NET && if it doesn't work for Drives and Directories (does it?) then how do you go about getting the icons for them? In other words, I'd like to foreach (string driveName in…
Spectraljump
  • 4,189
  • 10
  • 40
  • 55
5
votes
2 answers

DriveInfo.GetDrives() not returning mapped drives when run as administrator

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 (DriveInfo i in systemDrives) { if…
LPena
  • 51
  • 1
  • 2
4
votes
2 answers

Getting CD drive letter in VB.NET

I am using the following code to get a list of the letters for each drive on my computer. I want to get the drive letter of the CD drive from this list. How do I check it? The code I am using to get list is as below: In the Form.Load event: …
Furqan Sehgal
  • 4,917
  • 33
  • 108
  • 167
4
votes
4 answers

Powershell to wake up multiple media drives simultaneously

I have a server with lots of media drives ~43TB. An areca 1882ix-16 is set to spin the drives down after 30 minutes of inactivity since most days an individual drive is not even used. This works nicely to prevent unnecessary power and heat. In…
Dan
  • 223
  • 1
  • 5
  • 14
3
votes
1 answer

How to display label of unnamed drive?

I want to get the name or label of drive. I use this function : function GetVolumeLabel(DriveChar: Char): string; var NotUsed: DWORD; VolumeFlags: DWORD; VolumeInfo: array[0..MAX_PATH] of Char; VolumeSerialNumber: DWORD; Buf: array…
Ina Ira
  • 247
  • 6
  • 14
3
votes
6 answers

How to match linux device path to windows drive name?

I'm writing an application that on some stage performs low-level disk operations in Linux environment. The app actually consists of 2 parts, one runs on Windows and interacts with a user and another is a linux part that runs from a LiveCD. User…
alex
  • 43
  • 2
  • 4
2
votes
0 answers

Qt: How to get mounted drives

I'm writing a Qt GUI app. I'm using QFileSystemModel for local files, and I just learned that it doesn't work with mounted drives. Yes, I can get all currently mounted drives by calling view->setRootIndex(fileSystemModel->setRootPath("")); But the…
Alex
  • 34,581
  • 26
  • 91
  • 135
2
votes
1 answer

Detecting Windows Drive via VBScript

I have a VBScript which detects local hard drive letters and it will store them some where. Now I want to remove the Windows Drive from it. I mean first it finds all local hard drives, then detects windows drive and remove it from local hard drives…
Inside Man
  • 4,194
  • 12
  • 59
  • 119
2
votes
2 answers

IIS Virtual Directory in Azure

I've been told that you can create virtual directories in IIS hosted on Azure but I'm struggling to find any info on this as its a relatively new feature. I'd like to point the virtual directory to an Azure Drive (XDrive, NTFS Drive) so that I can…
Steve
  • 251
  • 4
  • 10
1
2 3 4