I have made a password prog in c++ that when inputted with the correct pwd exits otherwise continues indefinately.

My 2 questions are

1. is there a way to automatically shut down the computer after say 3 wrong passwords are given. If yes how?

2. i' have put the prog pathname in autoexec.bat and have disabled the boot from floppy option.

What are other ways of bypassing the autoexec?


Any help would be greatly appreciated (and before i forget i use win98.)