Copy - filename confusion (short/long?)

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
xerces8
Junior Member
Junior Member
Posts: 16
Joined: 2010-04-11, 21:23 UTC

Copy - filename confusion (short/long?)

Post by *xerces8 »

Hi!

Using TC v7.56a on Windows 7 Professional 64 bit (all updates) I encountered this issue while copying:

- I dragged a folder from left pane to right (there was an empty folder) and TC started to copy
- after a while an overwrite dialog popped up

The dialog asked about overwiting a file named STR~1 (file length 5550 bytes) in the destination folder with a same named file from the source folder (length 10 bytes).

Checking both folders by DIR /A shows:

source folder:

Code: Select all

C:\Windows\system32>dir  /a "C:\tc\2011-2012\Sinteza procesov\natasa\Prosyn\Win\ProGraph\structur"
 Volume in drive C is Win7ProSP1_64bit
 Volume Serial Number is 5E18-F90D

 Directory of C:\tc\2011-2012\Sinteza procesov\natasa\Prosyn\Win\ProGraph\structur

02.01.2012  19:39    <DIR>          .
02.01.2012  19:39    <DIR>          ..
09.02.2010  19:35             5.550 .str
09.02.2010  19:35                30 ALTLIST.LST
09.02.2010  19:35            12.566 backup.str
09.02.2010  19:35             6.198 cyclo.STR
09.02.2010  19:35             5.550 gani.str
09.02.2010  19:35            12.566 hdademo.STR
09.02.2010  19:35             8.748 hdadmo1.str
09.02.2010  19:35             3.488 kbti.str
09.02.2010  19:35             3.810 rctdemo.str
               9 File(s)         58.506 bytes
               2 Dir(s)  33.008.926.720 bytes free
destination folder:

Code: Select all

C:\Windows\system32>dir /a  "F:\2011-2012\Sinteza procesov\natasa\Prosyn\Win\ProGraph\structur"
 Volume in drive F is podatki
 Volume Serial Number is B641-21F2

 Directory of F:\2011-2012\Sinteza procesov\natasa\Prosyn\Win\ProGraph\structur

23.11.2011  04:11    <DIR>          .
23.11.2011  04:11    <DIR>          ..
09.02.2010  19:35             5.550 .str
09.02.2010  19:35                30 ALTLIST.LST
09.02.2010  19:35            12.566 backup.str
09.02.2010  19:35             6.198 cyclo.STR
09.02.2010  19:35             5.550 gani.str
09.02.2010  19:35            12.566 hdademo.STR
09.02.2010  19:35             8.748 hdadmo1.str
09.02.2010  19:35             3.488 kbti.str
09.02.2010  19:35             3.810 rctdemo.str
09.02.2010  19:35                10 STR~1
09.02.2010  19:35             9.416 tmba.str
09.02.2010  19:35             9.416 tmba1.str
09.02.2010  19:35             9.626 tmba2.str
09.02.2010  19:35               162 ~$cyclo.STR
              14 File(s)         87.136 bytes
               2 Dir(s)  488.336.347.136 bytes free

So it seems, the files .str and STR~1 were somehow confused.
Is this a bug?
In TC? Windows?

I also have a screenshot of the dialog, I can post it when I remember how to do that on this forum.

Regards,
David

PS: While previewing this post before posting, I get all backslashes replaced by a W with a strike through in the CODE parts. (I put one here to see if it is also affected: \ Nope, here is stays a backslash. I use currently IE9.)

PPS: Both volumes are NTFS.
xerces8
Junior Member
Junior Member
Posts: 16
Joined: 2010-04-11, 21:23 UTC

Post by *xerces8 »

It also happens using other tools (Explorer, XCOPY, CygWin cp), so it seems it is some "gem" left over in Windows from ancient times...

For reference, here is the screenshot: http://imageshack.us/photo/my-images/593/tccopy.png/
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50934
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is the name
.str
, which is an invalid name in DOS. Windows therefore creates an alternate DOS name STR~1 for this file.
Author of Total Commander
https://www.ghisler.com
Post Reply