P
PiErre
(my pc is winxp-pro sp2 - C: is ntfs 12GB)
I tested both with and without cmd
extensions (cmd /E:ON and cmd /E:OFF): no change
I had many files old-* and an important file
o.log.some.other.extension.doc
in the same directory; I issued a simple command
del ol*
and the important file was erased too!
Is this by design?
Isn't this quite dangerous?
Is there a way of obtaining the wildcard match only on LONG filenames?
here is an detailed example
C:\zz>dir
Volume in drive C is xxxx
Volume Serial Number is zzzz-zzzz
Directory of C:\zz
2007-01-17 11:23 <DIR> .
2007-01-17 11:23 <DIR> ..
2007-01-17 11:23 0 o.log
2007-01-17 11:23 26 o.log.gz
2 File(s) 26 bytes
2 Dir(s) 1,713,643,520 bytes free
C:\zz>dir ol*
Volume in drive C is xxxx
Volume Serial Number is zzzz-zzzz
Directory of C:\zz
2007-01-17 11:23 26 o.log.gz
1 File(s) 26 bytes
0 Dir(s) 1,713,643,520 bytes free
C:\zz>dir /x
Volume in drive C is xxxx
Volume Serial Number is zzzz-zzzz
Directory of C:\zz
2007-01-17 11:23 <DIR> .
2007-01-17 11:23 <DIR> ..
2007-01-17 11:23 0 o.log
2007-01-17 11:23 26 OLOG~1.GZ o.log.gz
2 File(s) 26 bytes
2 Dir(s) 1,713,643,520 bytes free
C:\zz>del ol*
C:\zz>dir
Volume in drive C is xxxx
Volume Serial Number is zzzz-zzzz
Directory of C:\zz
2007-01-17 11:24 <DIR> .
2007-01-17 11:24 <DIR> ..
2007-01-17 11:23 0 o.log
1 File(s) 0 bytes
2 Dir(s) 1,713,643,520 bytes free
C:\zz>
bye,
PiErre
I tested both with and without cmd
extensions (cmd /E:ON and cmd /E:OFF): no change
I had many files old-* and an important file
o.log.some.other.extension.doc
in the same directory; I issued a simple command
del ol*
and the important file was erased too!
Is this by design?
Isn't this quite dangerous?
Is there a way of obtaining the wildcard match only on LONG filenames?
here is an detailed example
C:\zz>dir
Volume in drive C is xxxx
Volume Serial Number is zzzz-zzzz
Directory of C:\zz
2007-01-17 11:23 <DIR> .
2007-01-17 11:23 <DIR> ..
2007-01-17 11:23 0 o.log
2007-01-17 11:23 26 o.log.gz
2 File(s) 26 bytes
2 Dir(s) 1,713,643,520 bytes free
C:\zz>dir ol*
Volume in drive C is xxxx
Volume Serial Number is zzzz-zzzz
Directory of C:\zz
2007-01-17 11:23 26 o.log.gz
1 File(s) 26 bytes
0 Dir(s) 1,713,643,520 bytes free
C:\zz>dir /x
Volume in drive C is xxxx
Volume Serial Number is zzzz-zzzz
Directory of C:\zz
2007-01-17 11:23 <DIR> .
2007-01-17 11:23 <DIR> ..
2007-01-17 11:23 0 o.log
2007-01-17 11:23 26 OLOG~1.GZ o.log.gz
2 File(s) 26 bytes
2 Dir(s) 1,713,643,520 bytes free
C:\zz>del ol*
C:\zz>dir
Volume in drive C is xxxx
Volume Serial Number is zzzz-zzzz
Directory of C:\zz
2007-01-17 11:24 <DIR> .
2007-01-17 11:24 <DIR> ..
2007-01-17 11:23 0 o.log
1 File(s) 0 bytes
2 Dir(s) 1,713,643,520 bytes free
C:\zz>
bye,
PiErre