Page 1 of 1

Redectection of removed drives

Posted: 2013-02-27, 22:40 UTC
by matma267709
Hi,

recently I often transfered files between two computers using a USB drive.

Here is the scenario:
Whenever a removeable device is removed, Total Commander removes the drive from the drive button bar and switches to C:\ in the active tab.
When the removeable drive is reconnected, Total Commander just adds the drive to the drive bar again, but does not switch back to the last folder in the active panel.
When the user switches back to the drive in one of the panels, Total Commander restores the last selected path of the removeable drive.

In order to (further) improve useability, I would suggest this function:
Total Commander automatically switches back to the last path of the removeable drive in the active tab, when the removeable drive is reconnected (condition: Total Commander switched to C:\ when the drive was disconnected before).

Is this feasible?

With this feature Total Commander would be 99.9999% perfect (it already is 99.999% perfect).

Best regards
Mathias

P.S: The Windows Explorer window is always closed when a removeable drive is disconnected. Getting back to the last path requires opening of a new Explorer window and browsing the complete drive. What a waste of time!

Posted: 2013-02-27, 23:37 UTC
by umbra
Hi,
what about a slightly simpler idea? Every time I connect an USB key to my computer, I have to think, which one of the drive letters belongs to it.
It would be nice if TC automatically opened a newly detected drive in one of the panels (or at least proposed it). There's no need for a complicated detection of previously connected drives, problems with changed drive letters and so on.

Posted: 2013-02-27, 23:51 UTC
by MarcinW
umbra wrote:It would be nice if TC automatically opened a newly detected drive in one of the panels (or at least proposed it).
OK, but only if this behavior will be configurable by Total Commander settings or wincmd.ini.

Posted: 2013-02-28, 18:44 UTC
by matma267709
Just to point out the differences between MarcinWs proposal and my idea:

- Automatically open a newly connected device is a beahviour similar to the Windows autorun of removeable devices (which a lot of users turn off because it is nasty). This would be a new feature in Total Commander.

- Going back to the path selected before would be simple to implement, as Total Commander already remembers the last path of a drive. This solution also wont affect the interaction of the user, as Total Commander just switches to the root of drive c:, when the device is disconnected (nothing will happen on reconnection of the drive, if the user meanwhile changed the path of the active tab or the active tab itself).

I do not know the source code of Total Commander. But I assume that my idea just requires some lines of code in the "new drive connected"-handler. Maybe an additional boolean variable is required that the path of the active tab did not changed in between.