removable-drive

Foxpro App and removable drives problem

I have a foxpro app, that contains hard coded path for icons and bitmaps. That's how foxpro does it and there is no way around it. And this works fine, except that when a removable drive has been used but is not connected, and when is connected windows assigns the same letter as hard coded path, when opening any form that contains such p...

Any way to determine speed of a removable drive in windows?

Is there any way to determine a removable drive speed in Windows without actually reading in a file. And if I do have to read in a file, how much needs to be read to get a semi accurate speed (e.g. determine whether a device is USB2 or USB1)? EDIT: Just to clarify, USB2 and USB1 were an example. These could be Compact Flash, could be ...

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 ? ...

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 default. What is the GetDriveType equivalent in C#? google only showed me hacks to use the c...

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. Thanks. Urgent ...

getting the path of a application at runtime + cocoa

Hi guys i want my application to run from removable storage devices and it should get the path of the removable storage it is running from or the rem storage device from which the app is launched. I have seen nsworkspace to get path of removable storage device but dont know how to get the path at run time. please suggest a way to do thi...

How can I get the real size of an SD card in Windows?

We're using a small self-made windows-based tool to write OS, Images and a FAT partition containing data on SD cards that will then be used in embedded devices as boot medium and data storage. I'm currently using IOCTL_DISK_GET_DRIVE_GEOMETRY to get the size of an SD card. However, due to the limitations of the CHS format it's not the r...

Detect when removable storage is unmounted.

Hi Guys I am working on an app which should detect events that happen when removable storage is unmounted or forcefully unplugged from the USB. how should I get these events? I have seen NSWorkspace for the first possibility of smoothly unmounting the device but this class has methods like – unmountAndEjectDeviceAtPath: to unmount a de...

Mac + External drive not recognized as removable storage

Hi guys I have a external 1TB drive which is not getting recognized by my program as removable storage device. I have in my code the following lines to detect the removable drives attached to the machine. NSArray *removableDrivesPaths = [[NSWorkspace sharedWorkspace] mountedRemovableMedia]; Please can you guys tell me a method to get...

How to stop application from executing

I am working on a project to prevent applications from being launched from removable devices. Does anyone out there know how i can do this? Preferrably in C++ on the Windows platform. My aim is to prevent execution of the exe file even if the user double clicks it or even if he tries to launch it from the command line. ...

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 process in C# that detects when new drives are plugged in? Background info: I am wanting to ...

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 .pas file (which I don't remember where I found) also seems to detect SD cards (which I li...

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 devices (USB drives, SD cards, (external HDDs?), etc.) apart and always be able to recogn...

Pretty (maker-free) device names, where do I find those?

I'm looking to do some things involving (removable) devices, so I was looking at WMI and other APIs, the 'Devices and Printers' screen and the Safely Remove Hardware popup as I want to have as seamless an experience as possible. Problem however.. is that I can't find any way to get the names as my user 'knows' them in his PC. Example......

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? ...

Accessing removable drive in a terminal services session.

I have a tray application that registers with the shell to receive notifications when a drive is added to the system or when media is inserted into a drive (via SHChangeNotifyRegister). Upon receipt of those notifications, I attempt to open the drive to query some properties from it. For my testing I am using a simple USB flash drive. ...

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 card readers it does not because the message is sent out once when the device is connected ...

Memory Card Information

I'm detecting the insertion of memory cards (removable media). Can I get information about the inserted media - type, manufacturer, etc? ...

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 DriveType=2 AND Size>0"); But it find USB flash drives also. Is there a proper way to find SD-c...

Looking for code snippets, library, or toolkit to modify a USB Flash Drive's serial number

I've been writing some tools to interact with a USB Flash Drive (removable drive) for our portable application. We are going to be tying some relevant information directly to the flash drive via the serial number (device serial number, not the volume serial number which is formatting based) I am able to read the device serial number. Wh...