Computing.Net > Forums > Programming > Batch file check files specifc dat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Batch file check files specifc dat

Reply to Message Icon

Name: bigb
Date: December 1, 2008 at 09:06:49 Pacific
OS: Win XP
CPU/Ram: P4
Comment:

Hi

I'm really new to this batch file programming and I'm trying to make life easier when having to check multiple files daily and if they are greater than 0 bytes.

So Far I have
@Echo off

echo Enter Day Number:
set /p day=

echo Enter Month Number:
set /p Month=

CLS

CD /d "T:\DATA"

IF not EXIST CASH%DAY%%Month%.lgp echo CASH%DAY%%MONTH% is missing
for %%R in (CASH%DAY%%Month%.lgp) do if %%~zR equ 0 echo CASH%DAY%%Month%.lgp is 0 bytes

But sometimes the day in the file name is yesterday with the file created time around 22:00

Is there a way of checking to see if the CASH****.lgp file was created in say the last 12 hours?

Thanks in advance
C



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Install shared printer wi... Can't check if input file...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch file check files specifc dat

how to check batch file www.computing.net/answers/programming/how-to-check-batch-file/2856.html

Batch file to check file attribute www.computing.net/answers/programming/batch-file-to-check-file-attribute-/16175.html

Batch file to check for .exe file www.computing.net/answers/programming/batch-file-to-check-for-exe-file/16163.html