A batch file is just a series of dos commands. When you run the file, it acts just as if you typed the contents of the file into a dos prompt. You can use any text editor to make them and then name the file xxx.bat.
In a third (scandalous) way of accomplishing the same thing, you could write a program to emulate the windows login screen to capture the admin password. Once it gets the password it would have to crash the computer or give a phony error message saying to restart the computer. Otherwise the admin would realize that it is not his account that he just "logged" into.




Reply With Quote