I am new to batch program
I want to copy files from one folder to another only certain file count in a particular directoy is met.
Please find my code below. Its not working ..Please correct the code and let me .
set var1 = 2
Var2= dir "C:\test" /b | find /v /c "::"
If %var1% == %var2% xcopy C:\test D:\test /s /e