Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

shutdown -s -t 1200 doesnt work

if I do a shortcut on my desktop with "shutdown -s -t 1200"
and I start it it doesnt work.
it works with 600. does someone know why it doesnt?
Probably has something to do with the number being greater than 1024.
(May 31, 2017 07:38 PM)DarkCart Wrote:  Probably has something to do with the number being greater than 1024.

This is not the case.

Code
/t xxx     Set the time-out period before shutdown to xxx seconds.
               The valid range is 0-315360000 (10 years), with a default of 30.
               If the timeout period is greater than 0, the /f parameter is
               implied.

I can't think of any reason why you're having an issue with it other than something else aborting the shutdown command (shutdown -a). If I may, why do you have a shortcut to shutdown in 20 min?
There's no place like ~/
Try

shutdown /s /t 999999

Then just do shutdown /a to abort the shutdown.


You could also have a shutdown already in process, so do shutdown /a before you do the 1200. Did you cancel the 600 before you tried the 1200?

[Image: gu1nwze.gif]
It appears with some testing, shutdown -s -t 600 gives a window popup but -t 1200 does not. It may be trying to give a taskbar balloon, but my machine isn't displaying it. Are you sure it's not working? Try running your script then issue another shutdown command. If the script worked, then you would get the message 'A system shutdown has already been scheduled.(1190)
There's no place like ~/
This is what happens if you don't shutdown /a since the previous request (it wont show display it)

[Image: giphy.gif]
(May 31, 2017 08:15 PM)Mr. Robot Wrote:  This is what happens if you don't shutdown /a since the previous request (it wont show display it)

[Image: giphy.gif]

Why don't you activate your OS? If mine was pirated that watermark would get on my nerves lol.
(Jun 2, 2017 05:37 AM)yotoprules Wrote:  Why don't you activate your OS? If mine was pirated that watermark would get on my nerves lol.

Same. I have a friend who pirated theirs, why not use KMS or something and get that shit gone? It looks so annoying.
maybe u have an app open that blocks it for some reason like its updating in background or u have an unsaved notepad session open or that type of thing, if somethings just blocking u from shutting down try

Code
shutdown -f -s -t 1200
"-f" is for force

and if your computer just gitches up on that number but u still wanna keep it all on one line of code this is how u can execute your 600 thing twice in a row with 1 line of code
Code
shutdown -s -t 600 & shutdown -s -t 600
(i still think u should put the "-f" in there no matter what so the shutdown can only be aborted threw shutdown.exe not threw some installed app thats running in background)
I feel like the issue is there is no popup message with the time he is requesting. Over a certain number, the popup turns into a taskbar bubble. My computer, for some reason, doesn't want to show bubbles so it may be something similar. I feel like the OP has ghosted though so we'll never know.
There's no place like ~/


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by Sir BillyAug 26, 2019 06:33 PM 1 144 Aug 26, 2019 06:33 PM
Last Post: YouthInAsia
[.NET] by KαѕρerJul 14, 2017 06:00 AM 4 239 Jul 14, 2017 06:00 AM
Last Post: Rhez
[.NET] by leonidascaprucoDec 28, 2016 03:27 AM 3 174 Dec 28, 2016 03:27 AM
Last Post: ubbelol