Need script to copy a file to UNC destination then rename it. File pattern is T+A_AZNM_Fri_V71_DDF060821A.ZIP, where the day of the week changes each day (Mon, Tue, Wed, Thu, Fri, Sat, Sun). I need the script to locate the correct file for the day of the week, copy it, then rename to T+A_AZNM_MMDDYY_V71_DDF060821A.ZIP. Important to copy it first so that the original remains unchanged.
Open in new window