1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Files older - exist

Discussion in 'Support' started by PeterR, May 9, 2016.

  1. PeterR

    Joined:
    May 11, 2010
    Messages:
    7
    Likes Received:
    0
    Hi,

    When I try to find out if one ore more files exist I use something like
    if exist c:\temp\*.doc echo FILES EXIST

    Now, if I want to know if one ore more files exist that are older x days, how can I do that?
    Is there a kind of
    if exist /[d-30,1/1/80] ......


    Peter
     
  2. dcantor

    Joined:
    May 29, 2008
    Messages:
    508
    Likes Received:
    3
    Code:
    DIR /[d-30,1/1/80] ... > nul 2> nul
    if %_? eq 0   ...
    
     

Share This Page