I thought the idea was to copy an HTMLZ file to a ZIP file and thats what I'm doing.
The 'dir/b *.htmlz' looks for the htmlz files
The copy "%%~fa" "%%~da%%~pa%%~na.zip" copys the original fully qualified name (the %%~fa) to the NEW name (the "%%~da%%~pa%%~na.zip") with a ZIP extension
The only thing I'm NOT doing is the delete of the file.
If desired add
Code:
del "%%~da%%~pa%%~na.zip"
AFTER the
Code:
"C:\Program Files (x86)\ubook\uBook.exe" "%%~da%%~pa%%~na.zip"
and before the