Questions tagged [removable]

13 questions
15
votes
2 answers

C# how to know if removable disk is a usb drive, or a sd card?

Windows 7 platform, C# I use the following statement to list all drives: DriveInfo[] drives = DriveInfo.GetDrives(); then I can use DriveType to find out all those removable disks: foreach (var drive in drives) { if(drive.DriveType ==…
Oh My Dog
  • 781
  • 13
  • 32
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
4
votes
1 answer

How to find the unique serial number of a flash device?

I've found several snippets and .pas files that can detect when USB flash drives are inserted and removed. Some give all kind of good information, however what I need is the devices' unique serial number, not the volumes' serial number. My current…
Daniel-Dane
  • 189
  • 3
  • 10
3
votes
4 answers

Detect USB mass storage eject/unmount in Linux

I'm using the g_file_storage gadget in Linux to export a partition as a removable USB mass storage device to host PC's (Windows, Linux, MAC). All of these host OS's (can) automatically mount the removable disk and access it without issues, and I'm…
Gertjan
  • 31
  • 1
  • 4
2
votes
0 answers

Is there a way i can capture my external hdd as removable drive

I am new to powershell and I am writing a script that will do something when a removable drive is connected. I have tried the script with three usb flash drives and everything works great. I tried with my toshiba canvio basic external hdd and it…
alexa
  • 21
  • 1
2
votes
1 answer

how to get the internal sdcard storage and External(removal) sdcard storage and system storage and available memory status in android?

I'm new to Android. I need the simple code of getting the Internal storage and external storage and System storage and how to get the Details of available memory(internal and external) space, total memory space. My code is below but its getting…
candy
  • 23
  • 5
0
votes
1 answer

How can I make component not removable after init in grapesjs?

I have grapesjs editor with mjml plugin and I decided to mark some components as not removable to protect users from remove critical parts of email template. Sugested way how to do this set attribute of mjml element like this:
0
votes
0 answers

Remove remote push notification while app closed

I am developing an iOS app using Swift which has push notification feature. I've implemented push notifications feature in my project and want to remove push notification when it's necessary (for instance message has been deleted by user A and push…
denickman
  • 29
  • 4
0
votes
0 answers

Pyqt - Removable widgets: Link button to a function

In the following code (see download link), I want to create removable widgets in a layout for vector plotting. In a generic removable widget I would like to include a button that allows the plotting. My problem is that I can not link the button…
Sim81
  • 1,574
  • 2
  • 9
  • 15
0
votes
1 answer

How to use Semantic UI removable icon

Semantic UI haven't documented how the removable widget works. The small x icon is what I mean by removable. What is the Semantic UI call I need to get this to make this work so that when I click on the small x it removes that element?
user3574492
  • 6,225
  • 9
  • 52
  • 105
0
votes
1 answer

WinRT RemovableDevices: Music folder: Cannot create items within this StorageFolder

I am trying to use WinRT to synchronize my music collection from a NAS system to my Windows Phone device. To create a folder in the Music folder on the phone I use the following snippet: StorageFolder DeviceFolder = ( await…
Simon Mattes
  • 4,866
  • 2
  • 33
  • 53
0
votes
2 answers

Howto Flip Removable Bit on USB Drive in C#?

How do I Flip the Removable Bit of my USB Pen Drive or HDD in C# like this Tool does? Thanks in advance!
MemphiZ
  • 766
  • 2
  • 13
  • 29
-2
votes
2 answers

How to fix the coding

My site is https://templatemonstrosity.blogspot.com/ . As you can see, on the very top of this page, there is an irritating text '-->'. I have searched through my entire XML do but I cannot find where it is, can someone please tell me what to do? If…