Search found 4 matches

by sonalir
22 Aug 2012 08:44
Forum: DOS Batch Forum
Topic: File modified 12 hrs before in batch
Replies: 1
Views: 2052

File modified 12 hrs before in batch

I was to check if the file was modified 12 hrs form now
and if so raise alert msg
by sonalir
22 Aug 2012 05:22
Forum: DOS Batch Forum
Topic: Time in 24 hrs in batch file
Replies: 5
Views: 9141

Time in 24 hrs in batch file

How to get Time in 24 hours timeline
eg:- 2:00 PM = 14:00
by sonalir
22 Aug 2012 05:21
Forum: DOS Batch Forum
Topic: how to get modified time of the file in batch file DOS
Replies: 4
Views: 14227

Re: how to get modified time of the file in batch file DOS

I got with
ECHO %FileDate:~11%

any ways

Thanks a lot
by sonalir
22 Aug 2012 04:16
Forum: DOS Batch Forum
Topic: how to get modified time of the file in batch file DOS
Replies: 4
Views: 14227

how to get modified time of the file in batch file DOS

>for %a in (a.txt) do set FileDate=%~ta ----gives date and time
>set FileDate=08/21/2012 02:36 PM

which is modified date and time

>for %a in (a.txt) do set FileDate=%FileDate:~0,10%-- gives date only
>set FileDate=08/21/2012

but i need only time
how to get it?

Please help