del, attributes, et c.

May 20, 2008
Syracuse, NY, USA
I did some experimenting with WinDbg and could find no instance of the hidden or system attribute being set.

But I did notice an inexplicable changing of attributes. Below, "e:\temp" is "t:\". After the DEL command (which did nothing) dir1 has acquired the archive attribute.

t:\> md dir1

t:\> touch /c dir1\file1
2011-07-26 12:56:38.194  T:\dir1\file1

t:\> attrib /s /d *
____D_________  T:\dir1
___A__________  T:\dir1\file1

t:\> del /[d-1,1980-1-1] /s /x /z /y /e /k e:\temp
     0 files deleted

t:\> attrib /s /d *
___AD_________  T:\dir1
___A__________  T:\dir1\file1

Similar threads