****************************
* IMPORTANT WARNING BELOW! *
****************************
On Fri, 16 Mar 2012 20:10:30 -0500, DanS
<> wrote:
>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
WARNING: Do NOT do this! You probably do not want the result.
This will unmount the volume, but not the USB device. It deletes
the mount point. The USB drive will be recognised when mounted, and
Safely Remove Hardware will work for it, but there will be no drive
letter. Note that this drive letter deletion persists across a
reboot.
>http://ss64.com/nt/mountvol.html
The above is what I should have read first. Using it, I was able
to recover.
A bare
mountvol
will give a list of volume names of the form
\\?\Volume{<GUID value>}\
The one you just mucked up will have a statement that there are no
mount points. To patch it up, enter
mount <drive>:\ <volume name>
where <drive> is a drive letter -- I assume an unused one -- and
<volume name> is the volume name mucked up. You should then be able
to use the USB volume as a drive again. This change will persist.
>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/>
This worked. It is a GUI program that also works on the command
line. Any output is GUI.
Sincerely,
Gene Wirchenko