[REQ] Unmount flash disk

English support forum

Moderators: white, Hacker, petermad, Stefan2

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

[REQ] Unmount flash disk

Post by *Aleq »

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: 3278
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

I dont think that well see that ever in TC as THIS is NOT easy done...
Hoecker sie sind raus!
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

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 »

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

Post by *Vochomurka »

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 »

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

Post by *Aleq »

Thanks for tips!
LA_
Junior Member
Junior Member
Posts: 12
Joined: 2006-12-07, 06:46 UTC

Post by *LA_ »

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 »

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_ »

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_ »

probably the following utils built in Win XP may help:
fsutil
mountvol
User avatar
karlchen
Power Member
Power Member
Posts: 4601
Joined: 2003-02-06, 22:23 UTC
Location: Germany

Post by *karlchen »

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: 990
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

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_ »

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