
@Dave
I think if we create a script of a thousand lines of code nobody would ever run it

@elzooilogico
there's a typo on line 86
What a silly bug

Codepages may produce weird characters when language special chars are used, here Versi¢n should be Versión.
I'll solve it like I did for the DIR command (using CHCP). Thanks, I wasn't aware of that failure.
@Douglas
I've noticed that all the results posted so far report that delayed expansion is disabled for both the system and the user. That seems unlikely, and I think it's because the test is backwards.
That's something I already answered to you. You can enable it using setlocal EnableDelayedExpansion. The script only reports the default setting. E.g. if you run a script via double click then delayed expansion is initially disabled.
I'm too tired to work on the script today. I will do the corrections tomorrow...
Steffen