Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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 offecho 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 bytesBut 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

![]() |
Install shared printer wi...
|
Can't check if input file...
|

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