I need to verify, via a script, the existence of a file in an installer folder. The name of the installer folder changes daily. It is deleted each night before the build and a new folder is created with the new installer name on it. So the name of the file I need to access is always the same, but the folder the file resides in will be different each time the script is run. Anyone have any idea how I can access that file in the folder with the ever-changing name?

Thank you for the answers. This is my first time doing this and I think I should have given a few more details.

I was attempting to access that file to verify that it was less than 6 hours old, which would mean the process that is designed to write it there had completed successfully. (This script audits an automated build.) I realized that I could just verify the modify time on the folder that holds the installer folder with the name that changes every night. That I can do (thanks to other posts here and on other sites).

Anyway, since I found another way to accomplish my goal, so I guess we're done! Thank you again for the answers. It's always cool to see a problem through new eyes.


In reply to Accessing a folder whose name changes daily by JennieInMI

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.