J
Jonathan Sachs
I wonder if anyone can explain why Windows XP's command line processor
did something very odd to me just now.
I had a directory which contained many files with the extension .html,
which were _not_ HTML files, and corresponding files with the
extension .html.en (for "English"), which were.
I entered the following commands to delete the HTML files and rename
the HTML.EN files:
del *.html
ren *.html.en *.html
I moved on without checking my work, but later I noticed that the
original .HTML files were still there, and the .html.en files had been
given the extension .html.html!
Accordingly I entered the commands
ren *.html *.hhhh
del *.html
to preserve the "real" HTML files and delete the fakes. That worked
as expected. Then I entered the command
ren *.hhhh *.html
to rename the real files, and I ended up with a bunch of .html.html
files again!
Why did it do that?
did something very odd to me just now.
I had a directory which contained many files with the extension .html,
which were _not_ HTML files, and corresponding files with the
extension .html.en (for "English"), which were.
I entered the following commands to delete the HTML files and rename
the HTML.EN files:
del *.html
ren *.html.en *.html
I moved on without checking my work, but later I noticed that the
original .HTML files were still there, and the .html.en files had been
given the extension .html.html!
Accordingly I entered the commands
ren *.html *.hhhh
del *.html
to preserve the "real" HTML files and delete the fakes. That worked
as expected. Then I entered the command
ren *.hhhh *.html
to rename the real files, and I ended up with a bunch of .html.html
files again!
Why did it do that?