The following batch file, meant to parse a directory and send each file to the specified program, works in Windows Vista x64:
@ECHO OFF
FOR /F "tokens=1,2 delims=." %%A IN ('dir /b /on *.mts') DO (
"C:\Program Files (x86)\DGAVCDecode\DGAVCIndex.exe" -i %%A.%%B -o %%~nA.dga -f 2 -a -e
)
In Windows 7 x64, cmd returns "File Not Found"—both as a normal user and Administrator. What's going on?