hey there. first off, i hope i posted my question in the right forum. second, i thank you in advance for an answer.
i have two short batch files:
1. shutdown - s - c "my message" - t 20
i expect this to shut down my computer in twenty seconds, but the file actually does absolutely nothing. i can't figure out what the problem is. i tried to rearrange the order of s, c and t, but nothing happens. even if i add -f, the file won't work.
2. shutdown -s -f
this file does work, but not the way i expected it would. note that i did not specify the time it should wait before it shuts down my pc but it set the time before shutdown to 30 seconds. ok, i guess there is a default value for it but my greater problem is that if i start the file, the usual little System Shutdown window appears telling me that the system is shutting down. however, if i hover over it with my cursor, the countdown stops, and it never dose its job. besides, i cannot close the little window neither clicking the X button nor throught task manager after hovering over it.
i am aware there are many questions i posed; whatever you answer, i'll learn something as i am very new to these types of things. i am trying to build a shutdown prank to mess with my family - I hope you do not find that overly mean.