Commands do not return codes. SHELL does not return any codes, either. However, stuff executed within the SHELL command could output to the console which would be suppressed by redirecting the output to >NUL.

Also, .INI files should always be read via READPROFILESTRING!

Finally, the use of GOTOs is frowned upon, so please get rid of them.
_________________________
There are two types of vessels, submarines and targets.