Why bat script stopped working?

Stuff like the script to mass convert mkv->m4v. Working principle: drag a list of files, after a while get a flash drive and all.
Converted a successful season of the anime script.
Yesterday launched script does not work.
The script itself:

REM @echo off
Using The Setlocal EnableDelayedExpansion

set cnt=0
set flash1=I:\VIDEO
set flash2=H:\VIDEO

if exist "%flash1%\" (
 set /A cnt=2
 set videpth=%flash1%
 echo "Set path I:\VIDEO!"
)
if exist "%flash2%\" (
 set /A cnt+=1
 echo %cnt%
 set videpth=%flash2%
 echo "Set path H:\VIDEO!"
)

if %cnt%==0 (
 goto :fail
)

FOR %%w IN (%*) DO (
 set dest="%videpth%\%%~nw.m4v"
 echo %dest%
 "D:\Program Files\ffmpeg-20140514-git-0aac9b7-win64-static\bin\ffmpeg.exe" -y-i "%%~fnxw" -map v -map 0:a-acodec copy-vcodec copy "%videpth%\%%~nw.m4v"
)

pause
goto :end

:fail
 echo "usb flash not aviable!"
pause

:end
 pause
June 14th 19 at 21:04
2 answers
June 14th 19 at 21:06
1. Because the flash drive was primordialis with other letters
2. Because ffmpeg has updated and the path to it changed
3. Because the original codec is not the one expected by the script
4. Because space on disk/flash drive no
...
Well enough yet to guess, perhaps.
Here the for loop does not start.
Why guess, copy the script, replace the call to ffmpeg echo "Hello word"
That is why the cycle doesn't start - I want to find out. - lance.Jenkins commented on June 14th 19 at 21:09
You told me that when you inserted the flash drive, the console window appears. Then the cycle starts. Otherwise the program would not run. - celestino_Kuvalis commented on June 14th 19 at 21:12
June 14th 19 at 21:08
So You have the same on all outputs pause is, that You tell us why it doesn't work: in the window still has to be written.
If the flash is disabled - the script writes "usb flash not aviable!", if inserted for a second, a console window appears. put a pause in the cycle - for a second, a console window appears. - lance.Jenkins commented on June 14th 19 at 21:11
then you need to add to the call ffmpeg.exe flag -report and see what is written in program-YYYYMMDD-HHMMSS.log - celestino_Kuvalis commented on June 14th 19 at 21:14

Find more questions by tags Windowscmd/bat