[REQ] Unmount flash disk

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
Aleq
Junior Member
Junior Member
Posts: 52
Joined: 2006-06-07, 07:24 UTC
Location: CZ, EU

[REQ] Unmount flash disk

Post by *Aleq » 2006-06-07, 08:44 UTC

It would be great to have following feature:

When on flash disk, let's have an unmount button next to favourites / last used folder. With hotkey of course. It should change the drive to any fixed and than unmount the usb flash disk.

I'd love to have this in TC. It's not very straight to click in the tray, switch to TC and change the drive (since I've forgot that I'm still "in" the flashdisk in total commander's panel) and again, tray - unmount, ...)

Just a tip...

Greetings,
Aleq

User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 2790
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA » 2006-06-07, 10:40 UTC

I dont think that well see that ever in TC as THIS is NOT easy done...

User avatar
Sombra
Power Member
Power Member
Posts: 795
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra » 2006-06-07, 11:34 UTC

2Aleg
Make a shortcut with:

Code: Select all

RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
and try it.
I can read English, but... I write like Tarzan. (sorry)

User avatar
petergus
Member
Member
Posts: 164
Joined: 2003-02-06, 16:28 UTC
Location: Sweden, Enköping
Contact:

Post by *petergus » 2006-06-07, 13:33 UTC


User avatar
Vochomurka
Power Member
Power Member
Posts: 790
Joined: 2005-09-14, 22:19 UTC
Location: Russia
Contact:

Post by *Vochomurka » 2006-06-07, 22:33 UTC

I use the PowerPro script for this purpose:

Code: Select all

trayicon.leftdouble("c=SystemTray_Main")
wait.for(1500, activewindow("Unplug or Eject Hardware"))
local Han = win.handle("Unplug or Eject Hardware")
win.setfocus(Han)
*keys {tab 2}{enter}
wait.for(1500, activewindow("Stop a Hardware Device"))
*keys {enter}
wait.for(1500, activewindow("Safe to Remove Hardware"))
wait 5
*keys {enter}{esc}
Single user license #329241
PowerPro scripts for Total Commander

VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP » 2006-06-08, 05:02 UTC


Aleq
Junior Member
Junior Member
Posts: 52
Joined: 2006-06-07, 07:24 UTC
Location: CZ, EU

Post by *Aleq » 2006-06-08, 09:31 UTC

Thanks for tips!

LA_
Junior Member
Junior Member
Posts: 12
Joined: 2006-12-07, 06:46 UTC

Post by *LA_ » 2007-01-08, 17:14 UTC

RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll
which disk does it unmount? I have 4 such disks (it comes from card reader).
can we use somehow several commands to change disk and then unmount?

(don't like 3rd utilities to do such simple task)

User avatar
D1P
Senior Member
Senior Member
Posts: 233
Joined: 2005-02-28, 18:29 UTC
Location: Moscow
Contact:

Post by *D1P » 2007-01-08, 18:34 UTC

which disk does it unmount? I have 4 such disks (it comes from card reader).
can we use somehow several commands to change disk and then unmount?
This command just show standard windows dialog, where you can stop&remove any USB file storage device.

LA_
Junior Member
Junior Member
Posts: 12
Joined: 2006-12-07, 06:46 UTC

Post by *LA_ » 2007-01-10, 12:05 UTC

heh, in this case it will not help... more easy to right click on disk panel to unmount disk...
do we have some other MS command to unmount particular disk (when it is known - like J: or O:)
or, can we do the same with VBScript usage?

LA_
Junior Member
Junior Member
Posts: 12
Joined: 2006-12-07, 06:46 UTC

Post by *LA_ » 2007-01-10, 12:55 UTC

probably the following utils built in Win XP may help:
fsutil
mountvol

User avatar
karlchen
Power Member
Power Member
Posts: 4557
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen » 2007-01-10, 13:21 UTC

Unlikely. :cry:

Unmounting the drive itself is at best half of the work which needs to done when deactivating a USB stick or a USB flash disk.
The device itself needs to be deactivated as well.

I guess hotplug.dll does all the required steps. Simply unmounting the drive using "fsutil volume dismount <drv:>" is not enough. however.

Karl

User avatar
Wilhelm M.
Power Member
Power Member
Posts: 784
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. » 2007-01-10, 15:18 UTC

Have a look at
http://www.nirsoft.net/utils/usb_devices_view.html .

You could create a button in TC to remove slected USB devices by calling the above NirSoft utility.
Grüße/Regards,
Wilhelm

LA_
Junior Member
Junior Member
Posts: 12
Joined: 2006-12-07, 06:46 UTC

Post by *LA_ » 2007-01-10, 16:07 UTC

I am trying to find solution how to do it without 3rd party tool...

Post Reply