can someone help me with this problem?
I'm would count the files in a folder and i want to move the first 8 files to an other folder. I can move the files but it doesn't stop because it doesn't count.
this is the code:
For %%I in (*) do (
IF %var% LSS 8 (
Set /a var=%var%+1 /// this doesn't work, it will not count
xcopy "%%I" Folder\