|I found what was making this problem.|
The hl_dir.txt file was supposed to contain the path
to the dir that needs to be removed.
The path was stored in hl_dir.txt using:
echo %CD% >"..\hl_dir.txt"
and this line had an error.
It was supposed to look like this:
that space between % and > resulted in %gamepath% having the value "C:\Games\game "
Notice that space before last quotes.
It was the reason for not being able to delete a dir.