Simplify test by using WriteFile.
Fix: progress bar sometimes doesn't disappear.
StrSlice substraction.