Guys,
This is getting a bit ridiculous, isn't it? I mean, I have no idea whatsoever what this fuss is all about.
The k.bat file is a totally standard way of removing the remnants of an uninstaller after reboot. So, if you uninstall SafeZone, then this file will run to remove the binaries that may be left after the uninstall, and finally delete itself (that's the last line of the file).
So, what's the issue, really?
Edit: ah, I see what you mean. You're concerned with the part
rmdir "C:\Program Files\AVAST Software"
rmdir "C:\Program Files"
correct? Well, you don't have to be. This is a pretty standard construct in batch files, relying on the fact that rmdir only deletes empty directories, i.e. it always fails if there's at least one file (or subdirectory) in it.
But otherwise, funny, I have never thought we would discuss batch file programming in this forum. :-)