Pretty crazy that we're closer to 2030, than we are 2005. Where did the time go!
0 Members and 1 Guest are viewing this topic.
Hi to all readers,this day I found a annoying misbehavior in Windows XP professionalwith SP2. I had a directory with some Java sources (*.java) and some backupfiles (*.jav). Because I din't longer need the backup files I woulddelete them with 'del *.jav'. But this command also delete all thesource files. #ยง%*. The last backup was 4 hours ago. :-/So I tried what happen and the result is the command above checksonly the first three chars from the extension (DOS is alive).Here is how you can reproduce it:mkdir testbugcd testbugrem.>file1.javrem.>file2.javarem.>file3.javasdel *.javAll three files are deleted. Is this a known bug or a unknown feature?Frank-- 21 is only half the truth _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/
The default setting on Windows is to create an 8.3 short file name for every file that cannot fit in the 8.3 format. The example you posted is expected behavior on a default Windows installation.Fire up the Registry Editor and drill down to: HKLM\SYSTEM\CurrentControlSet\Control\FileSystemTo disable creation of 8.3 short file names on local NTFS file systems, create or update the following DWORD registry keys:NtfsDisable8dot3NameCreation // NTFS onlyWin95TruncatedExtensions // del *.xxx phenomenonI don't think it's possible to disable 8.3 creation on FAT file systems. Other interesting keys:Win31FileSystem // FAT compatibilityNtfsDisableLastAccessUpdate // OT, but personal favoriteChanges take place after reboot.
Frank-- 21 is only half the truth