WAD Open handle on USB drive in TCC

Mar 2, 2011
6
0
I'm using TC 12.11.74 x64 on Windows 7, and I have a USB thumb drive that is usually plugged into my computer. If the drive is plugged in when I start TC, TC opens and holds a handle on the drive that prevents me from being able to eject it. I cannot close the handle except by either closing TC and all its command windows or by using Sysinternals's Process Explorer. If I start TC then plug the thumb drive in, no problem.

I've configured TC to open three windows on startup: Cygwin bash and two TCC sessions. None accesses or references the thumb drive. The initial TC List View window shows TC's installation directory on the C: drive.

I'm reasonably certain that I'm not doing anything to cause TC to look at this drive; the open handle looks like a leftover from some startup filesystem enumeration. Could this be a bug, or perhaps an issue with my PNY dirve? A possibly-related data point is that Windows displays a dialog whenever I insert this drive, claiming its filesystem needs fixing. I've let Windows "fix" it a few times but that doesn't stop it from complaining the next time.

I'd appreciate any insight.

-evan
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,463
88
Albuquerque, NM
prospero.unm.edu
A possibly-related data point is that Windows displays a dialog whenever I insert this drive, claiming its filesystem needs fixing. I've let Windows "fix" it a few times but that doesn't stop it from complaining the next time.

Have you tried doing a CHKDSK /F from an elevated prompt?
 
Mar 2, 2011
6
0
Have you tried doing a CHKDSK /F from an elevated prompt?
I have, and it finds no errors. I don't really care about Windows's crankiness over this drive other than the possibility that the symptom indicates something that could also be causing TC to behave incorrectly.

-evan
 

rconn

Administrator
Staff member
May 14, 2008
12,346
150
The only time Take Command will open a handle on a drive is if you're selected "Update Folders on Directory Creation / Deletion" in the Take Command configuration dialog (Advanced page). If you don't want to monitor the drives (and automatically update the Folder View window), you can turn off that option.
 
Similar threads
Thread starter Title Forum Replies Date
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
D Open Windows 10 Photos app from command line Support 11
R How to? Open Take Command at current folder Support 7
D everything /o does not open the option dialog Support 4
A How to? How do you launch TCC/LE using the already-open instance? Support 5
David Wilbanks How to make new tab open in same directory as previous tab? Support 4
C OT: Registry OPEN verb to start elevated... Support 2
epement Fixed Row/Col status bar flips continuously when 2 files open Support 4
S How to? Use Forum "feedback" button to open in a new tab Support 3
Mordachai Fixed Closing TCMD while IDE + Help Open = Crash Support 7
D How to? V15.00.30 -(help!) - Floating view windows don't open Support 1
C How to? Shell Window remains open Support 6
vefatica Open properties for .LNK? Support 16
Charles Dye IFTP, current directory, open new connection Support 0
R How to? can not open jvm.cfg help Support 2
fishman@panix.com Is there a way to get the HELP screen to open maximized? Support 4
daniel347x Open a bash shell in Take Command? Support 2
MBaas GUI-Tool for "File/Open" or tree (for use in batch-files) Support 3
P TCMD 11.0.28 does not open its window Support 15
M open Take Command here right-click? Support 2
CWBillow Context Menu "Open With" Support 10
T Open & Configure multiple TCC windows on STARTUP Support 4
Peter Murschall TEE cannot handle Unicode output Support 2
Joe Caverly @SMWRITE invalid handle Support 8
vefatica Job handle in target app Support 4
E Fixed DEDUPE doesn't handle filenames with whitespace properly when symlinking Support 1
C How to? handle the UAC prompt on computer restarts with Everything Support 3
S How to? Handle unexpectedly inaccessible CWD Support 8
vefatica OT: Rex, how does CMD handle its environment? Support 0
M How to? Handle errors in both a general and "complete" way... Support 6
J Handle WM_WHEEL when hiword(wparam) is less than WHEEL_DELTA Support 0
H HISTORY and DIRHISTORY /R can't handle Unicode Support 0
epement Coerce DOS programs to handle LFN Support 0
Jay Sage How To Use a "USB (Portable) Key" Support 7
M USB based licence? Support 1
D _USBS list misses flash drives that @USB recognizes. Support 7
S How to? Registered Take Command 18 on USB thumb drive Support 1
I Hidden files on USB Drive Support 4
W "Eject" usb stick Support 6
S How to? Hot dismount USB virtual disk Support 12
D copy /uf and usb key Support 5
A GPF when copying large amount of data on busy USB Drive Support 3

Similar threads