Still just exits

does anyone know why <x11 fiddles in vi>...
Im an idiot, sorry i had while exitlevel == 0 because im a complete freekin retard. (Its always a stupidity bug in my programs)

(Working (except for ver))
....
Ahhh got it... Nother stupidity problem (Gee Ex Eleven must have been really on the pills when posting that)...
Anyway how do you make everything in the cmdi string lower case after input
BASIC EQUIV:
cmdi$ = lcase$(cmdi$)
Thanks in advance!