From my experiments the "file not Found" means there are NO files matching *.html in the current directory when your script runs.
This is reinforced by the fact that IF any files had been found we should have seen lines like
copy "foo.htmlz" "foo.zip"
being output.
Even in your example above
Quote:
================================================
C:\>for /F "tokens=* delims= " %a in ('dir/b *.htmlz') do (
copy "%a" "%~Na.zip"
"C:\Program Files\Program Files Portable\ubook\uBook.exe" "%~Na.zip"
)
File Not Found
C:\>Pause
Press any key to continue . . .
================================================
|
all it's saying is there are NO htmlz files in your
c:\ directory.