Questions tagged [removable-storage]
79 questions
21
votes
3 answers
How to get the list of removable disk in c#?
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.

Anuya
- 8,082
- 49
- 137
- 222
16
votes
2 answers
How to eject a USB removable disk/volume, similar to the "Eject" function in Windows Explorer?
Do you know what is the API, or sequence of API calls that windows uses to accomplish the "Eject" function which is available on the shell context menu for removable volumes?
So far I've tried two things:
using CM_Request_Device_Eject, I enumerate…

Mike Dinescu
- 54,171
- 16
- 118
- 151
9
votes
5 answers
Listing all USB drives in Linux
How can I get a list of removable drives (plugged into USB) in Linux? I'm fine with using KDE, GNOME or other DE libraries if it would make things easier.

Marek Sapota
- 20,103
- 3
- 34
- 47
8
votes
0 answers
Get list of removable media drives in C#
I need to detect all the removable media drives and display them in a dropdown menu in C#.
How can I do this?

shandoosheri
- 492
- 1
- 6
- 16
8
votes
4 answers
Detect insertion of media into a drive using windows messages
I am currently using WM_DEVICECHANGE to be notified when new USB drives are connected to the computer. This works great for devices like thumb-drives where as soon as the device arrives it is ready to have files read from it. For devices like SD…

rjschnorenberg
- 661
- 1
- 9
- 30
7
votes
2 answers
Detect removable drive (e.g. USB flash drive) C/C++
How can I detect when a removable disk drive is (dis)connected to the system? How to get the mount path (for Linux) and the drive letter (for windows)?
EDIT: Is there a way to detect the currently connected devices?
user197967
7
votes
4 answers
Get notification when a new drive is connected via USB or other means (C#)
I need to detect when a new drive is plugged into a Windows system through a USB port, firewire port, etc. I am aware of the WM_DEVICECHANGE message, but this requires a window to be open in order to use it. Is there a way to create a background…

Phil
- 6,561
- 4
- 44
- 69
6
votes
2 answers
The best way to always detect a removable device
In my previous question "How to find the unique serial number of a flash device?" I ended up asking for a way to get the drive letter. That problem is solved.
However, my initial question has not been answered. I wanted to be able to tell removable…

Daniel-Dane
- 189
- 3
- 10
6
votes
3 answers
Get a partition name with PowerShell
I have a flash drive which I formatted so that the volume label on the drive is "PHILIP".
I am using Get-PSDrive H -PSProvider FileSystem to determine if the drive is plugged in, however I would really like to determine if the drive is plugged in…

Phil
- 6,561
- 4
- 44
- 69
5
votes
4 answers
GetDriveType in C#? or find out if my drive is removable?
I am using Environment.GetLogicalDrives(); to get a list of drives. I remember in c++ i could use GetDriveType to find if the device was CD, removable, flash, etc and i am thinking i want to put a filter in my app to only show CD and removable on…
user34537
5
votes
0 answers
How to differentiate between USB and SD mount?
I have an Android 6.0 phone with internal memory, removable SD card and USB OTG (pen-drive with micro USB jack) inserted in the phone. Removable SD card and USB OTG was ejected in Android equipment: "Settings" -> "Storage & USB". I can mount…

isabsent
- 3,683
- 3
- 25
- 46
4
votes
0 answers
I am not able to get actual path of the removable SD-card. Is there any way to get?
In some device, it's return actual path of the removable SD - card, but in some it returns null.
Basically, I want to store file according to user either internal storage of device or external (removable storage (micro SD- card)). This I need to…

Gopal Singh
- 1,133
- 1
- 9
- 25
4
votes
1 answer
How could I know when someone attaches a removable disk on my computer?
I would like to know how can I detect when the user attaches a removable drive on a computer ( in a Windows XP environment ) . There surely has to be a better way than constantly checking to see if the number of drives increased , right ?

Geo
- 93,257
- 117
- 344
- 520
4
votes
1 answer
Access is denied. Exception from HRESULT: 0x80070005 in Windows Phone 8.1
I am developing Windows Phone 8.1 Silverlight app,
I am trying to Upload document from my SD card but getting this error.
Access is denied. Exception from HRESULT: 0x80070005
System.UnauthorizedAccessException
I have also added Capability…

Nitesh Kothari
- 890
- 12
- 27
4
votes
2 answers
Searching for SD-cards
I need to implement searching for SD-cards in my program.
Currently I'm using search for all removable devices like:
searcher = New Management.ManagementObjectSearcher("\\localhost\root\cimv2", "SELECT DeviceId FROM Win32_LogicalDisk WHERE…

Shaddix
- 5,901
- 8
- 45
- 86