Hiroshi SHIBATA 8495d0ecae win32/rm.bat: report removal failures via exit code
The `error` variable was set on failure but never reached the exit
code, so removal failures such as a locked DLL left `nmake clean`
green while stale artifacts remained.  Exit with `error` at the end.
Since `rd /s` does not set ERRORLEVEL on failure, check the entries
remaining after it instead.  Also pass `/f` to `del` to remove
read-only files as `rm -f` does.
2026-07-30 08:24:16 +09:00
..