How to complete the script if the files in the folder 0.

Closed due to the fact that the essence of the issue is incomprehensible to the participants Pavel Mayorov , user194374, pavel , Alex , Denis 12 Dec '16 at 7:36 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • And what's the problem? - Pavel Mayorov
  • 2
    To do this, you must first ask a question. And you, by the way, have no question mark. - Pavel Mayorov

1 answer 1

Use a for loop to iterate through and count files.

 Setlocal EnableDelayedExpansion set cnt=0 for %%i in (%my_path%\*.*) do set /a cnt=!cnt! + 1 if %cnt%==0 goto :eof echo "Found files"