usb

How re-detect an USB Flash Memory by software?

Dears, After selecting "Safe Remove" option in windows system tray, is there any way that I can re-detect my Flash by a code, without plug it out and again inserting it to the computer USB port? Best Regards ...

Mac OS X accessing devices with same Vendor ID and different Product IDs

I am writing an application which opens USB devices and transfer some data. I am following the UsbSimpleNotificationExample from the Developer Examples. The example adds notifications and assigns callbacks for a unique Vendor ID and Product ID. But for my application I have multiple PIDs and a single VIDs. How can I add a dictionary entr...

How to access USB (Pen Drive) Firmware Number from Delphi or VB6?

I want to access/read the Firmware Number of a Pendrive attached on a USB Port of a PC. How can I do this? ...

Disable usb storage devices

Is there a way to programmatically disable usb storage devices from working while still keeping usb ports functional for other types of devices like keyboards and mice? ...

Accessing a USB device without using the drive letter in Windows

Is it possible to access a USB drive or Flash card without using the drive letter that Windows assigns it? I thought I read somewhere that the Volume GUID or something can be used but will that allow me to open it up in explorer once I identify it? The reason this is important to me is because there may not be enough drive letters to han...

Enumerating USB Devices on Windows with Java

In a previous SO question, it was mentioned that USB devices can be mounted using the following approach in Windows: MOUNTVOL C:\USB: \\?\Volume{ebc79032-5270-11d8-a724-806d6172696f}\ My question is what is that String starting with \\?\Volume called, and what is the best way to retrieve that. I would rather not use .NET if possible si...

How can I get Volume GUIDs using WMI?

Is there any way to retrieve the following type of path: \\?\Volume{GUID}\ for USB drives Using WMI? ...

Is there a way to check if an USB drive is stopped?

I've written a script to backup my server's HD every night. At the end of the script, I sync, wait a couple of minutes, sync and then I issue sg_start --stop to stop the device. The idea is to extend the lifetime of the device by switching the HD off after ten minutes of incremental backup (desktop disks will survive several thousand on/...

USB Drives and the Windows Drive Limit

What happens on a Windows box once you add more drives than can fit in the A-Z drive letters. I know about the mountvol command but my solution needs to work on Win98/XP systems that do not use NTFS. Is there any way to provide access to those drives? ...

Programmatic interface to MOUNTVOL.EXE

Is there any programatic interface for the MOUNTVOL command in Windows? What I am trying to do is get the output from mountvol (even if I have to parse it from the command line), which gives me the list of drives with their GUID-like path (\\?\Volume{...}) and get the device information based on that path (is it a USB drive, VENDOR_ID, e...

Looking for a USB Mass Storage emulator

I'm looking for a USB disk-on-key emulator to use in VMs running Windows XP/Vista. File transfer is pretty much all I need, but since it's going to be used to showcase another application, it needs to be as standard as possible (emulating real hardware disk-on-keys as closely as possible). Can you recommend any? EDIT: We use VMWare he...

Windows - Power off an usb device in software

I would like to power cycle an usb device through software on windows. I am doing development on a small usb power microcontroller. This chip will revert to native behavior on a power cycle and allow a code download. Since my code will crash the device when things go wrong -- making it ignore all USB commands -- I have to physically ...

How do I run the following WMI query?

How do I run the following WMI query, both programmatically to and as a one-shot deal? Can I use Visual Studio 2008, and if so what language and type of project do I setup? I'm a complete beginner at this so please provide details. Thanks! SELECT * FROM Win32_USBControllerDevice For Each as USBDevice ASSOCIATORS OF {Win32_PnPEntity.D...

Custom USB device that disables power to USB devices plugged into it

I have a very simple USB gadget that has a switch on it to turn it on or off manually. I would like to have the ability to keep it switched on at all times, and then write software to allow me to programmatically send power to it over USB. I envison building a small device that plugs into the computer and then the USB gadget could plug...

How do I automatically run an application on USB attach or CD insert on Mac OS X?

Is there any way to automatically launch an application on USB attach or CD insert on Mac OS X? it's easy on Windows, but I found that AutoRun.Inf does not work on the Mac at all. Please help me. Thanks in advace. ...

Start program on usb hardware plugin

Is there a way to detect when a specific device is plugged into a usb port, what I would like to happen is when I plug my laptop into my docking station it run up several apps to account for my different keyboard, mouse and monitors. Specifically I have an issue with some software for my G15 keyboard stopping media player closing properl...

Mapping a USB drive to a USB hub & port in Windows

What's the best way of mapping out where all the USB drives are plugged in? Ideally, I'd like to be able to recursively start from the root hub and keep going down the tree finding connect usb drives and what port they are connected to (which physical USB slot). ...

Enumerating USB drives and usb hierarchy on Mac OS

What is the best way to discover what USB drives are connected, where they are mounted, and their unique details like Serial number, PID and which USB Hub port they are connected to? Something similar to what USBlyzer does for Windows but programmatically. ...

How can I make a USB flash drive appear/not appear as a CD drive?

I recently was given a small USB flash drive as an advertising gimmick. When I plug it in, only one drive appears: a CD drive with 42kb used (just an autorun.inf file which launches the manufacturer's website). I know U3 drives also appear as CD drives, but their uninstall utility only works for their own drives. How can I make it appea...

How can i remove a USB flash disk programmatically using delphi?

How can I detect and remove a USB flash disk programatically using delphi? I have seen some of the examples in this website, but they lack clear explanation on how to go about it! Please examples will really help! ...