Batch file to get last modified date

Microsoft Windows
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Contact:

Batch file to get last modified date

Post by MigrationUser »

24 Sep 2010 04:24
Brock1791

I have to create a batch file that gives me the date a folder was last backed up. I know it has something to do with the echo command in cmd but other than that i have no clue.

----------------------------

#2 24 Sep 2010 10:28
bluesxman


Is this the sort of thing you're after?

@echo off
set "yourFolder=X:\Wherever\You\Like"
for /d %%a in ("%yourFolder%") do echo Modified date: %%~ta

Last edited by bluesxman (25 Sep 2010 12:38)

cmd | *sh | ruby | chef
Post Reply