you TELL me its COMMANDS shutdown Restart and Logoff also in win98,win2000,and WINME, and winxp recpectily, ThanksYou need script commands for these not DOS commands. So you need to be running WSH(WINDOWS Scripting Host) or some similar scripting program.
I use AutoIt for tasks like this. HTTP://www.autoitscript.com/autoit3/index.php