del, attributes, et c.

May 20, 2008
11,400
99
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.

Code:
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
Thread starter Title Forum Replies Date
Joe Caverly MKLINK and Streams and DEL Support 4
S CMDebug 22 issue with del command Support 1
I Puzzling Behavior of TDRV and DEL Support 2
vefatica File system update after DEL? Support 4
vefatica DEL /R on a SUBST'd drive? Support 1
C Del /W999 2gbFile.ext / latest build / Win7 x64 / MSE / Everything Support 5
nickles WAD del unable to delete files ending in "." Support 18
D del /s /q /f asks Are you sure (Y/N)? Support 7
Steve Pitts WAD Strange output from DEL of a non-existent directory Support 7
C DEL, connected Web folder, report Support 1
R /p when used with DEL Support 1
M A possibly stupid question about the "del" command... Support 7
Peter Murschall DEL /Y prompts always ? Support 3
vefatica Files disappear in Explorer when DEL fails Support 6
S WAD DEL /E suppresses fatal ERROR messages Support 2
nickles WAD del behaves inconsistenly# Support 7
David McClelland Why the prompt to del c:\* Support 7
Steve Pitts Are you sure prompt from DEL command Support 5
Steve Pitts Problem with DEL /S+n Support 11
vefatica DEL /Q not fixed Support 7
vefatica DEL /Q? Support 10
A del /w [minor documentation fix] Support 0
S DEL /L question Support 3
krischik WAD DEL *.htm Support 7
Phileosophos What could be slowing a "del /sxz" command? Support 19
S DEL on FTP site : complaint about missing DESCRIPT.ION Support 1
S SELECT DEL (*D.DLL) - output curious Support 8
T DEL disregards switch when using regular expressions Support 2
S DEL unhides directories Support 9
Kachupp Colour Attributes Support 2
Alpengreis How to? Copy DIRs with attributes ... Support 4
mfarah Fixed TCC seems to dislike the P and U attributes. Support 2
R Delete command sets directory attributes to hidden & system Support 46
S COPYing attributes Support 3
mscheuner How to access XML *attributes* using XPath Support 3

Similar threads