Best to know

I made me a little .bat file to solve the problem with restart/shutdown.

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.

Leave A Comment


Last Visited Articles


Info Board

Visitor Counter
0
 

Todays visit

41 Articles 1982 RSS ARTS 106 Photos

Popular News

🚀 Welcome to our website! Stay updated with the latest news. 🎉

United States

3.144.110.198 :: Total visit:


Welcome 3.044.000.098 Click here to Register or login
Oslo time:2025-04-03 Whos is online (last 5 min): 
1 - United States - 2a03:2880:f800:49::
2 - United States - 2a06:2880:f800:9::
3 - United States - 2a03:2110:f100:d::
4 - United States - 2a00:2880:f800:06::
5 - United States - 2a03:2880:f800:a::
6 - United States - 2a03:2000:f000:0::
7 - United States - 2a13:2881:f811:17::
8 - United States - 2a08:2880:f800:c::
9 - United States - 2a03:2880:f800:6::
10 - United States - 2a03:2880:f800:99::
11 - United States - 2a73:2887:f877:72::
12 - United States - 92.967.944.297
13 - Singapore - 40.028.00.89
14 - United States - 2a01:2880:f800:15::
15 - United States - 2a00:2880:f800:f::
16 - United States - 2a03:2880:f800::
17 - United States - 0a03:0880:f800:0a::
18 - United States - 4a03:4880:f800:44::
19 - United States - 2a03:2880:f800:7::
20 - United States - 2a03:2880:f800:1b::
21 - United States - 2a03:2880:f800:b::
22 - United States - 2a03:2110:f100:1c::
23 - United States - 2a08:2880:f800:8d::
24 - Singapore - 44.428.48.450
25 - United States - 2a03:2880:f800:13::
26 - United States - 2a03:2880:f800:90::
27 - United States - 2a55:2885:f855:5::
28 - United States - 2a06:2880:f800:68::
29 - United States - 1a03:1110:f100:e::
30 - United States - 2a03:2880:f800:9::
31 - United States - 52.777.744.787
32 - United States - 40.77.557.535
33 - Singapore - 43.328.93.333
34 - Singapore - 40.028.98.0
35 - Singapore - 47.628.669.4
36 - Singapore - 47.121.114.231
37 - Singapore - 47.626.665.46
38 - Singapore - 48.828.82.824
39 - Hong Kong - 790.97.733.77
40 - United States - 68.666.65.66
41 - Singapore - 47.628.46.67
42 - Singapore - 47.448.440.444
43 - United States - 3.233.204.222
44 - Singapore - 27.228.98.227
45 - United States - 88.888.828.244
46 - Singapore - 47.928.30.937
47 - Singapore - 47.728.20.744
48 - United States - 3.144.111.118


Farsi English Norsk RSS