1. We don't do homework here.
2. This is not possible through conventional cmd commands without regedit. I would look into a fuller language like C or C++ if you want to write your own, though I'm sure there is 3rd party software that will do this for you.
Your other option is to go into the control panel and look there. There might be something of interest under the mouse options.