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

42 Articles 8407 RSS ARTS 107 Photos

Popular News

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

United States

3.133.116.221 :: Total visit:


Welcome 3.233.226.222 Click here to Register or login
Oslo time:2025-05-04 Whos is online (last 10 min): 
1 - United States - 3.333.336.223
2 - Singapore - 47.628.67.648
3 - United States - 66.249.72.22
4 - United States - 3.737.707.777
5 - United States - 34.594.54.255
6 - United States - 2a01:2880:f800:1::
7 - United States - 88.232.36.8
8 - France - 54.36.848.8
9 - Singapore - 47.828.58.88
10 - United States - 66.649.70.69
11 - United States - 44.220.227.90
12 - United States - 3.290.29.96
13 - Singapore - 774.779.770.277
14 - Singapore - 43.328.30.33
15 - United States - 226.244.66.237
16 - Singapore - 47.118.111.118
17 - United States - 2a03:2880:f800:43::
18 - United States - 68.688.36.667
19 - United States - 66.249.70.32
20 - Singapore - 47.228.222.229
21 - Singapore - 47.929.927.299
22 - United States - 66.249.64.028
23 - Singapore - 333.339.333.365
24 - United States - 2a08:2880:f800:8::
25 - United States - 2a03:2880:f800:5::
26 - United States - 66.349.64.339
27 - Singapore - 47.668.50.640
28 - United States - 43.130.61.6
29 - United States - 98.229.228.298
30 - Singapore - 48.828.35.88
31 - Singapore - 47.121.10.17
32 - Singapore - 333.339.333.33
33 - United States - 66.149.71.35
34 - Singapore - 42.228.29.84
35 - Singapore - 41.128.39.236
36 - United States - 58.259.50.555
37 - Singapore - 47.128.112.121
38 - United States - 66.247.70.74
39 - Singapore - 47.828.54.888
40 - Singapore - 444.449.440.444
41 - Singapore - 47.428.64.493
42 - Singapore - 07.028.020.009
43 - United States - 2a03:2550:f500:2::
44 - United States - 08.090.005.060
45 - France - 24.26.248.220
46 - Singapore - 47.727.54.277
47 - Singapore - 224.229.222.25
48 - Singapore - 47.929.97.995
49 - United States - 957.55.99.202
50 - United States - 296.244.66.200
51 - Singapore - 47.828.826.884
52 - Norway - 80.003.066.069
53 - France - 54.36.545.530
54 - Singapore - 47.428.45.4
55 - United States - 88.228.888.208
56 - Singapore - 47.727.54.772
57 - Singapore - 47.528.524.62
58 - Singapore - 44.448.444.89
59 - United States - 3.24.55.478
60 - Singapore - 47.888.58.90
61 - Singapore - 444.449.436.44
62 - Singapore - 99.928.929.259
63 - Singapore - 41.121.109.95


Farsi English Norsk RSS