Windows 7 Forums


Reply
Thread Tools

USB Drive Unmount Command

 
 
Gene Wirchenko
Guest
Posts: n/a
Thanked:
 
      03-16-2012
Hello:

Does anyone know of a command for unmounting a USB drive? I
frequently copy from system to system using batch files, and I would
like it if the drive could be unmounted at the end of the batch file.

Sincerely,

Gene Wirchenko
 
Reply With Quote
 
 
 
 
Andy Burns
Guest
Posts: n/a
Thanked:
 
      03-16-2012
Gene Wirchenko wrote:

> Does anyone know of a command for unmounting a USB drive?


Wonder if this powershell approach would work?

http://social.technet.microsoft.com/...-7eb0c74d2ae5/

or a shell.application COM method?

 
Reply With Quote
 
 
 
 
Zaphod Beeblebrox
Guest
Posts: n/a
Thanked:
 
      03-16-2012
In article <>,
says...
>
> Hello:
>
> Does anyone know of a command for unmounting a USB drive? I
> frequently copy from system to system using batch files, and I would
> like it if the drive could be unmounted at the end of the batch file.
>


To the best of my knowledge there is no native way to do this, but
there are 3rd party tools that allow you to script unmounting/ejecting
a USB drive. I've not used it, but I've seen where deveject.exe is
purported to be able to do this.

--
Zaphod

Vell, Zaphod's just zis guy, ya know? - Gag Halfrunt
 
Reply With Quote
 
BeeJ
Guest
Posts: n/a
Thanked:
 
      03-17-2012
Over all the years of using either a USB HDD or a USB Pen drive I have
never unmounted it before pulling the plug on either and have never had
any problems. This on XP and Vista and Windows 7.
Has anyone had a problem?

 
Reply With Quote
 
DanS
Guest
Posts: n/a
Thanked:
 
      03-17-2012
Gene Wirchenko <> wrote in
news::

> Hello:
>
> Does anyone know of a command for unmounting a USB
> drive? I
> frequently copy from system to system using batch files,
> and I would like it if the drive could be unmounted at the
> end of the batch file.


Hmmmmmm..................

Does mountvol work on USB drives? .......probably not, but

mountvol x: /d

http://ss64.com/nt/mountvol.html






I wonder if this would be of any use to you....

<http://www.howtogeek.com/howto/windo...-or-hotkey-to-
immediately-eject-a-specific-usb-drive/>



 
Reply With Quote
 
Stan Brown
Guest
Posts: n/a
Thanked:
 
      03-17-2012
On Fri, 16 Mar 2012 12:47:03 -0700, Gene Wirchenko wrote:
>
> Does anyone know of a command for unmounting a USB drive? I
> frequently copy from system to system using batch files, and I would
> like it if the drive could be unmounted at the end of the batch file.


http://quick.mixnmojo.com/software/usb-disk-ejector

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...
 
Reply With Quote
 
Stan Brown
Guest
Posts: n/a
Thanked:
 
      03-17-2012
On Fri, 16 Mar 2012 17:17:51 -0700, BeeJ wrote:
>
> Over all the years of using either a USB HDD or a USB Pen drive I have
> never unmounted it before pulling the plug on either and have never had
> any problems. This on XP and Vista and Windows 7.
> Has anyone had a problem?


An actual problem? No.

An annoying message from Windows the next time I remounted it?
Usually. So I always eject, just to avoid the message. And in so
doing, I also avoid that off chance of an actual problem.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...
 
Reply With Quote
 
Roger Mills
Guest
Posts: n/a
Thanked:
 
      03-17-2012
On 16/03/2012 19:47, Gene Wirchenko wrote:
> Hello:
>
> Does anyone know of a command for unmounting a USB drive? I
> frequently copy from system to system using batch files, and I would
> like it if the drive could be unmounted at the end of the batch file.
>
> Sincerely,
>
> Gene Wirchenko


Why not just use the built-in "Safely Remove Hardware" icon?
--
Cheers,
Roger
____________
Please reply to Newsgroup. Whilst email address is valid, it is seldom
checked.
 
Reply With Quote
 
J. P. Gilliver (John)
Guest
Posts: n/a
Thanked:
 
      03-17-2012
In message <>, Roger Mills
<> writes:
>On 16/03/2012 19:47, Gene Wirchenko wrote:
>> Hello:
>>
>> Does anyone know of a command for unmounting a USB drive? I
>> frequently copy from system to system using batch files, and I would
>> like it if the drive could be unmounted at the end of the batch file.
>>
>> Sincerely,
>>
>> Gene Wirchenko

>
>Why not just use the built-in "Safely Remove Hardware" icon?


Which you call from a batch file, how?
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G.5AL-IS-P--Ch++(p)Ar@T0H+Sh0!:`)DNAf

.... back in the olden days ... Britain was entirely made of wood and lit by
one enormous candle, tended by the Queen
- Steven Moffat, Radio Times, 24-30 July 2010
 
Reply With Quote
 
BillW50
Guest
Posts: n/a
Thanked:
 
      03-17-2012
In news:,
Stan Brown wrote:
> On Fri, 16 Mar 2012 17:17:51 -0700, BeeJ wrote:
>>
>> Over all the years of using either a USB HDD or a USB Pen drive I
>> have never unmounted it before pulling the plug on either and have
>> never had any problems. This on XP and Vista and Windows 7.
>> Has anyone had a problem?

>
> An actual problem? No.
>
> An annoying message from Windows the next time I remounted it?
> Usually. So I always eject, just to avoid the message. And in so
> doing, I also avoid that off chance of an actual problem.


I have a number of times. Although this was 5 years or more ago and I
don't recall what Windows OS it was. And the worst one had a scrambled
directory. Worse it would randomly popup new filenames with strange
characters. Reformatting fixed the problem. Thank goodness for backups,
as nothing was retrievable.

--
Bill
Gateway M465e ('06 era) - OE-QuoteFix v1.19.2
Centrino Core Duo T2400 1.83GHz - 2GB - Windows XP SP3


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to backup my drive C from a bootable USB drive ? mahanddeem Installation, Setup and Updates 0 01-16-2013 04:27 PM
Manage & secure your USB Drive with USB Security Utilities Nibiru2012 Security 0 08-13-2010 05:22 AM
Command Sending Problem Saidas Windows 7 Support 0 03-06-2010 04:45 PM
Modify install/boot disk to boot directly to command prompt KIZMET2010 Customization 1 02-21-2010 01:51 AM
Command prompt fails to open Cameron Windows 7 Support 2 07-18-2009 11:25 AM


All times are GMT +1. The time now is 05:36 AM.
W7Forums is an independent website and is not affiliated with Microsoft Corporation.