akorb / SteamShutdown

Automatic shutdown after Steam download(s) has finished.
MIT License
362 stars 28 forks source link

Windows 10 doesn't shutdown #19

Closed WeirdScienceX closed 6 years ago

WeirdScienceX commented 6 years ago

I just recently came across this program and it is ideal for what I need.

The problem is on Win 10 Version 1803 (Build 17134.112) the shutdown dialogue box appears however the shutdown never commences. I've never tried it on another version of Windows so I don't know what the expected behaviour is.

2018-06-25_00-23-59

akorb commented 6 years ago

I tried to replicate your problem. My computer turns off properly, also on Win 10 Version 1803 (Build 17134.112). Did you check the "Complete all downloads" in the SteamShutdown context menu?

WeirdScienceX commented 6 years ago

Hi thanks for the reply, I'm sure the fault is down to myself. I do seem to remember using Winaero at some stage to manipulate shutdown settings but it has been so long since I did it I can't quite remember.

I tried the program on another desktop and a laptop and it performed flawlessly, thanks for such a useful program.

akorb commented 6 years ago

I just scrolled through the features of Winaero and couldn't find an option which would break the shut down. Can you try executing the following from the command line? (This will shut down your pc if successful): shutdown /s /t 0

Did it work?

WeirdScienceX commented 6 years ago

Yeah the shutdown command works fine.

akorb commented 6 years ago

Weird, that's exactly what is executed by my program. The only thing I can imagine is that there is another shutdown.exe before the real one in the search paths.

WeirdScienceX commented 6 years ago

I checked the system variables and couldn't see anything but I imagine you're right, something is intercepting calls to shutdown

The only thing I could find in Winaero was the create shutdown shortcut on the desktop which I couldn't imagine causing any issues.

Thanks for all your help anyway, if I get to the bottom of it I will let you know

akorb commented 6 years ago

Open command line: cd "folder with SteamShutdown.exe" Afterwards execute where shutdown. Then you can see which shutdown.exe my program will execute.

The shutdown shortcut can be a problem if its name is "shutdown" and is in the same folder as the SteamShutdown.exe or its shortcuts.

WeirdScienceX commented 6 years ago

This is what I got:

`C:\Users\d3xp2\Desktop>where shutdown

C:\Windows\System32\shutdown.exe`

akorb commented 6 years ago

Then I'm stumped, sorry :/

WeirdScienceX commented 6 years ago

Thanks for your help anyway

akorb commented 6 years ago

Let me know your solution when you figure it out. :)

pointydev commented 5 years ago

Heya,

Not sure if this was ever resolved but I'm kinda having the same issue. Win 10 1903 Insider, I downloaded TERA last night so I could play with a friend, didn't work. You mentioned you were using shutdown /s /t 0, so I've got a question: are you executing it as an actual command or are you attempting to emulate keyboard inputs to open WIN+R?

I'd also like to throw in my two cents and suggest running with the /f flag, where we're assuming a user has saved their work before starting a download.

Thanks, Elliott