add open multifiles and some bat code