"usb flash drive cannot be stopped just now" if op
Moderators: Hacker, petermad, Stefan2, white
"usb flash drive cannot be stopped just now" if op
"usb flash drive cannot be stopped just now" says windows if that drive is open in totalcmd.
Re: "usb flash drive cannot be stopped just now" i
Just change the drive, other than USB drive, before quit.d wrote:"usb flash drive cannot be stopped just now" says windows if that drive is open in totalcmd.
Best wishes,
Eugen
My Best Wishes,
Eugen
Eugen
2roentgenroentgen wrote:I always wondered why people keep answering with the "problem" instead of with the "solution" (especially since currently there is no solution)?Just change the drive, other than USB drive, before quit.
Should I point out that "this works in explorer ™"?
First, it's about "drive open in totalcmd" not in explorer.
2nd, explanation: because TC use USB stick, Window$ can't stop the process.
No directory (folders) from USB stick, must be present into any folder tabs in Total Commander before you can stop the process.
Of course, with TC running.
If you wish, I can explain in Romanian for you, for better understanding.
Best wishes,
My Best Wishes,
Eugen
Eugen
Should I point out the difference between a problem and a workaround for this problem, especially since Eugen explained how to work around the problem?roentgen wrote:I always wondered why people keep answering with the "problem" instead of with the "solution" (especially since currently there is no solution)?Just change the drive, other than USB drive, before quit.

Karl
Not really confirmed.Eugensyl wrote:No directory (folders) from USB stick, must be present into any folder tabs in Total Commander before you can stop the process.
Telling from my own experience, I can tell Windows to unload the USB stick (RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll) even if in one of the TC tabs a USB folder is still being displayed. This tab, however, must not be the currently active tab.
Anyway, the question is more or less like this:
- You tell Windows to unload the USB stick. Windows tells you it is being blocked.
- Does this mean TC receives a Windows message telling it to release the USB stick, but TC viciously ignores the Windows message?
- Does this mean TC never receives such a message at all, so it cannot know it should release the USB stick?
- Does Windows even bother to find out which programme is blocking the stick?
This is not really amazing, because the file manager "Explorer" is the same "Explorer" which you tell to unload the stick. And Explorer has a pretty good chance of knowing it is blocking the stick and of unblocking it automatically.roentgen wrote:Should I point out that "this works in explorer ™"?
The unanswered question is if TC has got a chance of knowing that "unload USB stick" has been requested?
This question can very likely only be answered by Christian Ghisler, the programm author.
[Added]
So far this thread has been somewhat on the line: TC vs. Explorer. Here is something to show it is not that easy:
Open cmd.exe, change to the USB drive, F: in my case. Switch back to the SysTray, right-click the USB icon and select "Remove hardware safely".
You will get the same error message as quoted by user "d".
Result: The USB stick cannot be safely removed.
Reason: cmd.exe is blocking the USB drive. (And it is MS cmd.exe that comes with Windows.)
Repeated the same procedure using IrfanView and used its open dialogue to navigate to the stick and open a folder (no picture loaded). Result: The USB stick cannot be safely removed.
Conclusion:
Things may not be as easy as some people seem to assume.
We still cannot tell for sure if TC has got a chance of switching away from the USB stick as soon as Windows receives an unload request.
Apparently cmd.exe cannot do so. Irfanview would not do so either.
[/Added]
Karl
Last edited by karlchen on 2007-07-07, 22:32 UTC, edited 2 times in total.
2d
Have you tried these settings:
http://madsenworld.dk/tcmd/usb-1.png
and
http://madsenworld.dk/tcmd/usb-2.png
Have you tried these settings:
http://madsenworld.dk/tcmd/usb-1.png
and
http://madsenworld.dk/tcmd/usb-2.png

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Let's jump to [MY] conclusions: TC didn't go further than cmd.exe in functionalityOpen cmd.exe, change to the USB drive, F: in my case. Switch back to the SysTray, right-click the USB icon and select "Remove hardware safely".
You will get the same error message as quoted by user "d".

TC for Linux please!
No, I'm the kind that says: if one can do it - so can I. That assumes that Ghisler has at least 1% interest regarding the reported problems, which isn't always the case.karlchen wrote:Conclusion:
You deliberately ignore any evidence that might indicate it may not be TC's fault.![]()
TC for Linux please!
I'm sure (someone please confirm/deny this) that neither TC, nor cmd.exe, nor any other application (other that Explorer itself) is notified that user wants to disconnect USB from the Safely Remove Hardware tray icon. So, as karlchen pointed out, it's possible that it's not TC's fault.
aNDreas Bolotă
The truth always carries the ambiguity of the words used to express it. (Frank Herbert, God Emperor of Dune)
The truth always carries the ambiguity of the words used to express it. (Frank Herbert, God Emperor of Dune)
Hmm... I'm no programming expert but this looks like enough: DBT_DEVICEQUERYREMOVE, part of WM_DEVICECHANGE
MSDN says:
Something that looks like a real example: Processing a Request to Remove a Device
// rant: damn... I had to use google again
MSDN says:
but it seems that TC and the likes actively deny this.The system broadcasts the DBT_DEVICEQUERYREMOVE device event to request permission to remove a device or piece of media.
Something that looks like a real example: Processing a Request to Remove a Device
// rant: damn... I had to use google again

TC for Linux please!