The requirement is that I have 1 folder and in that folder there are so many txt files, and everyday 100s of files landed and processed, now I want to monitor how many files are present on the folder at the moment when I run the bat file for today's date.
Below is the script I have been using, but seems it is working but fetching all the document instead of today's document only
@echo off
setlocal enabledelayedexpansion
set c1=0
for /f "tokens=*" %%x in ('dir /s /a /b "D:\Flow\Flow1\Flow2\Flow3\KEN*.txt" 2^>nul') do set /a c1+=1
echo.KEN,!c5!
dir /s /a "D:\Flow\Flow1\Flow2\Flow3\*.txt" 2>NUL | find /C "%date%"I don't think i can create a robocopy in the Production, this is working in UAT but not an option for meis supposed to mean? What areProductionandUAT? and what is stopping you using theRoboCopycommand?