Categories
Mastering Development

Want to retrieve the Modified date for list of file names present inside a file in CMD prompt

I have a list of file names present inside a file called My_text.txt may be more than 100, I want to retrieve the Date modified basically the DIR command output for all those file names.

My_Text.txt contains
D:\Users\dsa99_p\Desktop\My_Program1.txt
D:\Users\dsa99_p\Desktop\My_Program2.txt
D:\Users\dsa99_p\Desktop\My_Program3.txt
D:\Users\dsa99_p\Desktop\My_Program4.txt

and so on..

I want to retrieve the Date modified for all these My_Program1, My_Program2, My_Program3, My_Program4 files. How to do it please help.

If it’s possible over Powershell then let me know.

Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *