Hmm i think i wasnt explaining it well enough ...
The code is mainly designed for removing illegal characters (todo) and spaces from filenames and directory trees on (documentation base at our fileserver). Example:

#A subdir under the documentation base: v:\sql\ 15.07.2008 16:52 38.705 sql datensicherung.pdf 15.07.2008 16:54 32.120 SQL 2000 transaktionsprotokoll ver +kleinern.pdf
So the code is harmful if started directly from the commandline. So i have either:
a) Change the code so that it doesnt just work on the current directory as is now. or
b) Check that it is not used on potential "dangered" directory trees.
b) Seems to be reasonable for me anyway, since the standard commandline starts at the users home directory (HOMEPATH=\Dokumente und Einstellungen\myuser) on Win32 and colleagues might use my code too without really knowing what it does ...

Thanks in Advance MH

In reply to Re^2: 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.