Jump Drive Removal

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Hi All,

This may be a basic question but I cannot figure out how to do it. I would
like to issue a command at the cmd prompt to cause my jump drive to be ready
to be removed. Normally I click on the hardware symbol in the system tray
and choose "Safely remove USB mass storage device" and the light on the Jump
drive goes out and then I can safely remove the Jump Drive. I am using
write behind caching so issuing this command is important to my current
setup.

Thanks in advance,

Jim
 
Jim said:
This may be a basic question but I cannot figure out how to do it. I would
like to issue a command at the cmd prompt to cause my jump drive to be ready
to be removed. Normally I click on the hardware symbol in the system tray
and choose "Safely remove USB mass storage device" and the light on the Jump
drive goes out and then I can safely remove the Jump Drive. I am using
write behind caching so issuing this command is important to my current
setup.
Hi

To automate the job of safely removing a device completely, you can use
deveject.exe available here (includes C++ source code as well):

ftp://ftp.heise.de/pub/ct/listings/0316-208.zip

For help, run deveject.exe /? in a command prompt.

Works for Windows 2000/XP/2003.


An example using the EjectName command line switch:
deveject.exe -EjectName:"USB Mass Storage Device"
 
Thanks,

It worked great.

I am still wondering if Windows XP provides any commands to allow this from
the cmd prompt instead of having to rely on external C++ program?

Thanks in Advance,

Jim
 
Jim said:
Thanks,

It worked great.

I am still wondering if Windows XP provides any commands to allow this
from the cmd prompt instead of having to rely on external C++ program?
Hi

Sorry, this is not possible with a script or command line without
using a 3rd party program.

The best you can do is to open the GUI:

rundll32.exe shell32.dll,Control_RunDLL hotplug.dll
 
Back
Top