MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically.
Search the Community
Showing results for tags 'interval'.
Found 1 result
I need to do a batch file wich order all files by a date interval, example: @echo off echo Input the date(dd/mm/yyyy): set /p compDate= ::After that i will compare from the actual day (%date%), example: set interval = %compDate% - %date%... Something like that ::After that i need to list all files from a specific directory, example: echo Input the directory: set /p directory= SET Exit= %UserProfile%\Desktop\test.txt ::After that i might i need the dir /tc to get the creation date, example: pushd "%directory%" dir /s /tc /a-d > %Exit% ::After that, i dont know how to get only the lines wich the date interval are, example: Today is 19/08/2014, but i want to search all files created from day 10/07/2014. So i have to copy all lines which have the date 10/07/2014, 11/07/2014, 12/07/2014 and so on until stop on today created files. I tried with findstr but i can't set the date interval, just a specific date to search in the .txt created. Somebody know how to do that ?