If you already have a drive with custom icon, like c:\ on Vista, it's possible to reproduce it just with subst command.
Description of expected icon behavior:
1. After TC restart, subst a root of c:\ drive as t:, for example go to c:\ in TC and use a button:
Code: Select all
TOTALCMD#BAR#DATA
subst t:
%p.
%COMSPEC%
Subst current path to temp t: drive
1
-1
Now remove subst'ed drive:
Code: Select all
TOTALCMD#BAR#DATA
subst t: /D
%COMSPEC%
Remove temp t: substed drive
1
-1
To reproduce the bug:
1. Restart TC.
2. From TC, using a button shown above, subst a drive using a root of another drive as a target. For test, try a drive without a custom icon.
3. In current TC session, remove sub'sted drive.
4. In current TC session, use subst for a root of drive which has custom icon. It's expected (see above) that new drive will have the icon of drive for which subst used, but instead it won't have an icon (because TC shows an icon for drive made in step 2, which is removed now).
In step 4, instead of subst'ing a new drive, you can connect a usb drive with custom icon (which may even have another drive letter), but TC won't show an icon for it too. If subst'ed drive in step 2 had custom icon, it will be re-used for a new drive which appears in step 4.
This wrong icon is re-used probably in all places where TC uses drive icons: drive bar, drives list, breadcrumb, trees...