AUX (still) crashing Total Commander

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
suncho
Junior Member
Junior Member
Posts: 13
Joined: 2003-12-19, 13:36 UTC
Location: Tampere, Finland

AUX (still) crashing Total Commander

Post by *suncho »

Hello, all. I know it is not tcmd's fault but still...

Trying to rename a file or directory to "aux" is freesing total commander for sure. Everytime. Tcmd displays something like:
"Renaming c:\temp\somefile.txt to c:\temp\aux" and freeses for eternity. (Acutally I have never tested it with "eternity", but max. a minute :) )

OK. I know it is a Windows problem. Somehow the windows is still that old-fashoned, and AUX is still handled as a COM port#1 somehow and somewhere. The same problem occurs when using all other device names, like COM1, PRN, LPT1, etc. In that sence, this is not tcmd bug. But isn't tcmd "fixing" explorer anyway? :)

There was simmilar problem in mIRC at some point, and it got just "workarounded". Even Windows Explorer silently refuses to rename a file to such "forbidden" name and does nothing.

As I am stupid (stupid) user, and the specifics of my work is that I often need a folder named "aux" I have crashed my beloved tcmd at least 5 times that way. Could there be some workaround for the problem? :arrow: I.e. when TCMD sees that I use AUX as a target to replace it with "aux_", or just skip the procedure? The chances that I really mean "copy that file to the device AUX" are minimal. The chances that I expect to have com port in c:\temp\aux are zero ;)

Thanks in advance.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3893
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Trying to rename a file or directory to "aux" is freesing total commander for sure.
Sorry, on my system the renaming is successfully inhibited by TCMD, saying somthing like "write protected" (using Win 2000 and TCMD 6.03a) ...
#5767 Personal license
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

suncho wrote:Renaming c:\temp\somefile.txt to c:\temp\aux" and freeses for eternity.
sqa_wizard wrote:the renaming is successfully inhibited by TCMD, saying somthing like "write protected" (using Win 2000 and TCMD 6.03a)
Both of you seems to be right. I have tested this on Windows 2000 and Windows XP Pro. On Windows 2000 the mentioned error dialog is displayed. On Windows XP TC hangs forever. suncho, are you using Windows XP?
I have also tested this in Explorer. In Windows 2000 it displays an error message. On Windows XP explorer returns immediately to the original filename.
Microsoft has changed something in depth I guess.
Related link: Naming a file - MSDN article which lists all reserved filenames
User avatar
suncho
Junior Member
Junior Member
Posts: 13
Joined: 2003-12-19, 13:36 UTC
Location: Tampere, Finland

Post by *suncho »

suncho, are you using Windows XP?
Yep. WinXP and (annoying) SP2. Also TC 6.03a
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50541
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It depends on whether AUX is a valid device or not. I don't prevent this, because people may actually WANT to send files to COM1 or AUX, e.g. to print to a printer attached to a serial port. AUX is often used for a remote debugger via serial, but not always. TC doesn't crash, it hangs waiting for a response from the port...
Author of Total Commander
https://www.ghisler.com
User avatar
suncho
Junior Member
Junior Member
Posts: 13
Joined: 2003-12-19, 13:36 UTC
Location: Tampere, Finland

Post by *suncho »

I am really ashamed of being so bitchy about small problem that noone else has. :oops:
Actually in the Multi-Rename tool it is handled ok :D

Just as a suggestion for some distant future version of TC :wink: :

Configuration-> Misc.:
--Get Confirmation befofe---
| ( ) Using device names as target (AUX, PRN, etc.)
|

"The this use device name as target. Are you sure?"
Yes | Skip | Cancel

... but probably it is too small problem to clutter the options with?
Post Reply