Open the latest folder in dir

Mohamed ali 1 Reputation point
2021-11-12T15:54:26.003+00:00

Hello,

I'm trying to write a script to open the latest file inside the latest folder and copy the data to another excel workbook. The folder is compressed

Get-ChildItem "C:\ArubaReports" -Recurse |
Sort-Object -Property LastWriteTime -Descending |
select -First 1

Thank you!!

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
883 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,533 questions
0 comments No comments
{count} votes