Moving a file where the folder name changes by date...

I am trying to do a move-item with a source path that will equal \path to server"folder name usually dated yyyymmdd format (20200313)"\filename.xlsx

 

The folder name (dated) will obviously change everyday… so is there a way to make that part of the path a variable, or do I need to maybe do a get-childitem, pipe it to move-item with condition of “where-object”???

 

 

\\path to server\*\filename.xlsx

I guess I just assumed the simple way wouldn’t work…lol I always prepare for things to be complicated.

 

 

I’ll give it a try

it works… sorry for the dumb question. Obviously my brain was eliminating the easiest solution. And I’ve done it that way before and still chose to not remember.

 

 

Thank you Olaf