![]() ![]() Rem LOOP THROUGH LIST OF FILES and CALL SUBROUTINE TO CHECK FILE DATEįor /F %%A in (list.txt) DO (CALL :CHECKFILE %%A)įor /f "tokens=1-5 delims=. Any ideas on how to get rid of a or p? rem extract current dateįor /f "tokens=1-5 delims=.,/ " %%a in ("?te%") do (įor /f "tokens=1-5 delims=.:, " %%a in ("%time%") do (ĭir /B /O:N c:\mydir\*myfilestub*.* >list.txt I have posted my partial solution below (does not perform date math and echos to screen filename and date/time values). ![]() I have adjusted it for multiple files, and US date format, but the problem I am having in the file minutes it is picking up the 'a' or 'p' for am or pm. Click in the Search box, located in your newly opened folder’s top, right corner, and type in a few. (Or, to limit your search to a specific folder or library, don’t open. This is based on Find out if file is older than 4 hours in Batch file, but that solution was written for only for one static filename. To search for files created or changed during a specific date, follow these steps: Click the Start button and click Computer. Have to do this in batch because this is an older server that we don't want to load anything else on. Have a need to find files in a folder that are older than X hours. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |