Ways to shutdown/restart your computer via Remote Desktop
![]() To make a bat file to work with you go to START --> Run --> cmd and press Then you get a command window. Type EDIT and press . Then a blue window opens. Press ALT+F to make the menu appear, and choose "Save As..." You just save the file on your desktop (or another place of your choosing). After that you close the command window. Go to the place you saved the .bat file. RIGHTclick the file and choose EDIT. Ok..so far, so good. :) Then you just paste the following text into the file and save it: :START cls @echo off echo. echo Remote Desktop Client - shutdown or restart echo. echo When you use Remote Desktop you do not have echo the usual restart/shutdown choices. echo This will RESTART or SHUTDOWN the remote client echo according to your choice. echo. echo 1. Restart echo 2. Shutdown echo 3. Abort echo. set /p userinp= Choose a number(1-3): set userinp=%userinp:~0,1% if "%userinp%"=="1" goto restart if "%userinp%"=="2" goto shutdown if "%userinp%"=="3" goto end echo invalid choice goto start :restart Echo Program: Please wait.... shutdown -r -t 01 goto end :shutdown shutdown -s -t 01 goto end :end I have made this based on various sources on the internet, and almost no coding has been done by me. I'm just saying that so noone thinks it is ME that wrote all this code :) But here it is. Wish someone could write a Win app that looked a little nicer than this DOS-window. If someone do that, mail it to me, please. Visited:788 Article expires on: 12/25/2037 |