hi all, ive this problem, i need to search 3 files, that can be located on 1 of 5 drives, in 3 diferent dirs on that drives, the files are always named OK.txt , error.txt and unknown.txt so i want to programm a script that searchs the drives for the files ( i think with dir into an array), the scripts needs to check if the file that is found is from today other wise it shoud search the other drives if nothing it found then the file from yesterday after finding the file it should rename the file with the curent date (done with localtime and rename i think) then it shoud copy the 3 files to a specific folder. so my problem i dont even have a clue how i can find out the date of a file. the rename and copy thing is no problem i think so far ;D but for me the search of the file and then when a file is found the check when it was created. thx for help PS: its for windows ,D

In reply to Finding files , rename then and copy them by Alex_T2

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.