Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Command to eject a USB Mass storage device

Command to eject a USB Mass storage device

Forum Windows XP : Windows XP General Discussion - Command to eject a USB Mass storage device

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Hi all,

Is there a command in XP, where u can
double on an icon / shortcut, and stop / eject a USB Mass storage device?

I know the Safely remove hardware icon
appears in the taskbar.

But can u make a shortcut to one of the devices on the desktop, so when u
double click on it, it'll stop / eject that device??

Any info appreciated

Thanx

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Paul wrote:

> Is there a command in XP, where u can
> double on an icon / shortcut, and stop / eject a USB Mass
> storage device?
>
> I know the Safely remove hardware icon
> appears in the taskbar.
>
> But can u make a shortcut to one of the devices on the desktop,
> so when u double click on it, it'll stop / eject that device??
>
> Any info appreciated
Hi,

To automate this, 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"



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/s [...] fault.mspx

Reply to Anonymous
- 0 +

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Thanx Torgeir. Will check it out

Cheers

"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:ePQ%23FJYhFHA.2904@tk2msftngp13.phx.gbl...
> Paul wrote:
>
>> Is there a command in XP, where u can
>> double on an icon / shortcut, and stop / eject a USB Mass
>> storage device?
>>
>> I know the Safely remove hardware icon
>> appears in the taskbar.
>>
>> But can u make a shortcut to one of the devices on the desktop,
>> so when u double click on it, it'll stop / eject that device??
>>
>> Any info appreciated
> Hi,
>
> To automate this, 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"
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/s [...] fault.mspx

Reply to Paul
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Command to eject a USB Mass storage device
Go to:

There are 1256 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them