The BAT file solution is irrelevant, it applied (maybe) to ATK 12.8, that's a long time ago and not relevant to ATK 2017.
Also, do not attempt to put any code of your own into the ATK installation, that will only make things worse.
Your problem is probably related to that strange "ib:/lib..." - you need to figure out where it comes from. Check you environment variables, seems there might be a typo in them. Look for the same string in the output of "set"