Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Secret Doom said he will be off until I think
the 23rd. Check some of the older posts. I
think he covered the same problem.

I've found some time on my schedule to answer the un-answered batch questions. Here goes your solution, grey:
@echo off
if "%1"=="" goto eof
if not exist %1 goto eof
echo e115'SET %%1='> %temp%.\T1.DAT
echo e126 D A 1A>> %temp%.\T1.DAT
for %%? in (f100L15''20 w q) do echo %%?>> %temp%.\T1.DAT
dir/4 %1 |FIND ":" |FIND /v "\" > %temp%.\T2.BAT
DEBUG %temp%.\T2.BAT < %temp%.\T1.DAT > nul
call %temp%.\T2.BAT FDATE
for %%? in (T1.DAT T2.BAT) do del %temp%.\%%?
echo %1 was last modified on %FDATE%.
:eofSINTAX: filename.bat filename.ext
(filename.bat is what you will name the batch file, and filename.ext is the file to get the date into variable).You can use a hardcoded filename instead of %1, of course.
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br________________________________________________________

By the way, good work you batch-people are doing around. =D
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |