Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell Get-Item to get the last modified date from a CSV

$
0
0

Hi there,

I'm completely a beginner in Powershell. I know how to produce the last modified date of a single file by doing the following:

(Get-Item C:\test\file123.xlsx).LastWriteTime.toString()

I'm not sure how to do the same thing but from multiple files. The files are listed in a csv/text file that only has the file paths (around 250k files). I also need to output the path along with the last modified date on a separate file.

Many thanks in advance.


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>