OK. Again. It is Windows only:
It is a documentation base with many files and directories that has grown over the years.
The "users" are only sysadmins. But there is documentation from ex-users which left the company many years ago. So a "user" thought it might be important that this and that file or directory is first in "Explorer View". So he named it e.g.

"!!!My Important File/Directory please pay A T T E N T I O N A L L ! +!!!" or: "%20%My%20%reports%20downloaded%20document%20.pdf" (Which seems to come from downloaded documents where html is in the document name)

As a "new user", which joined the company recently i am asked or commanded ;-) to sort and bring "order" to it., cause this is outdated (it was done back in 2001 e.g.) i want to eleminate those "not illegal" but "hard to read" "file- and directorynames *and afterwards* sort it manually. But i *d o n t* want to do that by hand on thousands of files (namely: Files: 15624 Files 15.810.523.308 Bytes...)
And yes i want to run the script on a regularly basis and the other sysadmins are informed that maybe some old links are broken, but its no problem ...

Thanks in Advance MH

In reply to Re^4: Test for directory entries and exit if certain conditions are met? by matze77
in thread Test for directory entries and exit if certain conditions are met? by matze77

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.