Windows also has to worry about getting sued by another multinational conglomerate when some idiot loses the only copy if a super critical file because they were too lazy to save and forced their laptop to shutdown so they could pickup lunch.
I can't speak for them if they're joking or not but it's something you can absolutely do. *.bat files (short for "batch", as in a batch of commands to execute in sequence) are the script files for the Windows command line, and can be executed by double clicking on them
Thanks, I’m familiar with batch files. This just seems like a very bad way to perform a shutdown, especially when running a UI Desktop windowing system. And even if that shutdown command is fully supported from the GUI, I would guess you need to be admin to run it, which means you can run the bat file as admin, so if you can edit the file or modify the env in which it runs (e.g. PATH) it seems like it could be a security problem. And if you don’t need to be root to run the shutdown command, that seems like its own problem. I suppose Windows still has the “run as administrator” from the context menu so maybe that helps.
You did say "I don't use Windows" which sounded like you were saying you didn't know if what they were saying was technically plausible or reasonable, and without knowing what you do or don't know about Windows or DOS, figured I'd respond with the presumption that it's possible you're only really familiar with *NIX systems (which is not a judgement).
I find it kludgey and unnecessary to shut down that way, but it's not exactly a bad idea, and it does not require admin rights.
And there's no reason it wouldn't be supported: when you run the file, it opens it in a terminal window, it's exactly like if you manually opened it and typed it from a technical point of view.
And if someone malicious has the ability to edit a file on your desktop, they could do a lot more dangerous things, pretty much anything you could put in the batch file, more or less directly.
Really, the only issue here is that you'd always be force closing your programs when you shut down which increases the odds that eventually they might corrupt one of their files... Not a huge risk, but non-zero.
As it is a simple command you don't need to be an admin or run as administrator. Listen kids don't run batch files if you don't know where they came from or who made them.
Not really. If -f (force) is removed windows will shutdown similar to pressing the shutdown button and will wait for your input regarding open programs. -f is needed to just just “do it” with no hesitation or response from the user.
/t <xxx> Sets 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.
Theres a button on the back of the psu that comes in handy a LOT with windows. Useless on linux unless you want to use that button for its intended purpose.
Oh, p-lease, can force it my ass, Linux has never failed to shutdown on me when using plain obvious GUI method. windows - can easily hang on forever as long as computer stays powered. The point of all the memes is exactly insane windows defaults, not the things that can or can't be done by someone with enough knowledge
Absolutely, if people agree or not, the core windows is still a pretty powerful operating system. Its sad that they are ruining it by adding crap into it.
Linux programs either HAVE to be quick while receiving shutdown signal, otherwise the state will be fucked, work will be lost, and people will be mad, and program will stop being used.
Clicking the Windows button to force shutdown will straight up kill the program and won't care at all.
It was simpler using Linux to just kill things unceremoniously, but my coworkers are also consistently amazed when Epic throws a temper tantrum (rare, but it happens) and I walk over and ctrl-alt-delete and tell it to sit down and shut the fuck up until it's ready to reboot and act right.