WAD Reboot doesn't shutdown or restart

May 20, 2008
11,411
99
Syracuse, NY, USA
It doesn't make sense (if I understand it correctly). Running elevated is discouraged yet it's required for the simple, and often everyday, tasks of turning the computer on and off, or just restarting it. What is the ordinary user expected to do ... Ctrl-Alt-Del?
 

rconn

Administrator
Staff member
May 14, 2008
12,356
150
Microsoft thinks the ordinary user should Ctrl-Alt-Del, or click on the start button and select reboot / shutdown. If you the Windows APIs changed, you should direct the requests to Microsoft. Surprisingly, they haven't provided me with either the Windows source code or the authority to approve or deny all API changes.
 
May 20, 2008
11,411
99
Syracuse, NY, USA
Microsoft thinks the ordinary user should Ctrl-Alt-Del, or click on the start button and select reboot / shutdown. If you the Windows APIs changed, you should direct the requests to Microsoft. Surprisingly, they haven't provided me with either the Windows source code or the authority to approve or deny all API changes.
Start button? ... That's explorer. So it would seem that an ordinary user can do it.
 
Apr 13, 2010
309
7
61
The Hague
@MaartenG: I use TCC 20.00.25 x64 Windows 10 [Version 6.3.14393] Should have added that to my original post. My bad.

@Rex: My user experience with some aspect of your product has changed. Something stopped working that used to work. Do you prefer that I do not report that? Is it my use of the bug tag? What?

Shutdown.exe works. And it works without elevation.

A normal helpful answer to my original post would have been:

The REBOOT command does not work as expected under Windows 10. This is caused by a change in the Windows API. Unfortunately our compatibility tests did not catch that change before releasing our product. We have changed the documentation accordingly. We do/do not expect to be able to repair this problem at .. moment. Meanwhile, in the unfortunate event that existing code breaks because of this problem we suggest that you create the following alias:

alias REBOOT=START /ELEVATE REBOOT
-or-
alias REBOOT=%_winsysdir\shutdown.exe

This works correctly with both the /S and the /R option. In the latter case your users might note a one minute delay before the actual shutdown.


Regards, DJ.
 
Last edited:
Apr 13, 2010
309
7
61
The Hague
I have nothing intelligent to reply to that.

I do feel obliged to report any discrepancies between HELP and reality. I am *not* responsible for its solution.

Meanwhile I noticed that an un-elevated REBOOT does close the console (before failing to shut down or restart the machine).

If its all so simple and logical as Rex suggests then I fail to see how that could possibly be WAD. Since elevation can be tested for I would expect either an error or simply the elevation dialog.

Also, I have the Win10 developer mode ON under the Anniversary Update.
That's all I can think of, reason-wise... ;-)

I would like to take this opportunity to suggest that Rex develops a program that with the user's permission gathers relevant information about the misbehaving pc and submits it back to JPSoft. I reckon, it could be a valuable source of information in cases where a problem is difficult to reproduce. I have really good experiences with other suppliers doing that.

Regards, DJ.
 
Jul 29, 2016
49
1
Works fine for me in a regular non-elevated session (at least when I used REBOOT by itself with no switches. Haven't tested it with any switches yet).

Windows 8.1 Pro x64
TCC 20.00.25
 
Similar threads
Thread starter Title Forum Replies Date
T How to? retain command history across reboot? Support 6
fishman@panix.com First TCC instantiation after reboot does not work. Support 17
rps Reboot and exit reason Support 10
cgunhouse AutoStart on Reboot Support 4
F Sending "Y" to chkdsk to run on C at next reboot Support 25
S ON and REBOOT questions Support 3
vefatica Setting array variable ignores leading spaces (and @execarray doesn't) Support 4
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
gworley Virtual network drive filename completion doesn’t get directories Support 0
vefatica Win10's ANSI doesn't like 2>NUL Support 10
vefatica Win10, alternative screen buffer, cursor doesn't blink Support 11
M Trying to use ffind with a @file.lst doesn't work Support 4
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
gschizas Take Command (Environment) doesn't show v2 ANSI colors Support 30
vefatica Fixed JOBS /K doesn't work Support 2
E Fixed SHRALIAS doesn't work / SHRALIAS.EXE is missing in v20.11.35 Support 2
M Documentation Q.Search doesn't support selection? Support 1
R Fixed 7ZIP Compression Method Option Doesn't Work Support 1
T Regex engine doesn't recognize native DOS line endings Support 2
E Fixed DEDUPE doesn't handle filenames with whitespace properly when symlinking Support 1
D Docking doesn't persist Support 5
E WAD DESCRIBE under TCC 19 doesn't work with diacritics Support 14
C VIEW PRINT /Wrap doesn't work Support 0
D CD doesn't always find everything Support 8
M View doesn't recognize Ctrl+End and Ctrl+Pos1 Support 2
M Ctrl-End doesn't work. DelToEnd is not executed Support 13
B Fixed FFIND doesn't find last character in file without CR/LF at EOF Support 1
G .BTM association doesn't work anymore Support 1
jadaml Documentation Is COPY realy doesn't work for any HTTP and FTP? Support 3
D do /s doesn't recurse Support 1
D WAD Alt-Left doesn't work, but Alt-Shift-Left does Support 1
I How to? Bat Works but BTM Doesn't Support 6
B %@lines doesn't count last line without cr/lf at eof Support 1
williamleara WAD ribbon doesn't remember expand/collapse setting Support 3
vefatica Why doesn't "IDE %_ININAME" work? Support 4
M How to? /Elevated doesn't do it for me... Support 8
D Why doesn't ffind find directory? Support 3
Phileosophos TPIPE doesn't work at all with v16 Support 3
D ejectmedia doesn't work in v16 Support 2
Phileosophos Fixed Register for all users doesn't register for all users Support 10
T "Checking for a newer version" doesn't complete Support 18
vefatica Doesn't IDE auto-indent? Support 3
C FFind /w works but FFind /= doesn't? Support 2
noahcoad WAD cmd.exe under tcc doesn't find apps Support 4
vefatica Fixed TPIPE doesn't /SPLIT at characters Support 0
M Site doesn't recognise cookies Support 0
D What's New doesn't mention copydir movedir Support 25
D TIMER OFF doesn't work Support 21
M @Files sure doesn't work the way I would have assumed it did! Support 4
M Why doesn't this @Field function work? Support 0

Similar threads