I want to force shut down the system in C#.

Asked 2 years ago, Updated 2 years ago, 47 views

Programming C#.

There was a situation where I had to force my computer to shut down.

I googled Process.Start ("shutdown", "/s/f/t 0");

There's roughly this way.

However, without running Notepad and saving data, If the above command is entered, you can cancel the shutdown.

Is there any way to blow up a computer at once?

c#

2022-09-22 16:52

2 Answers

Does the /f option still come out of the notepad?

The description states that if you give the /f option, it will end without warning. /f = This option forces running programs to close without warning.


2022-09-22 16:52

Oh no, I didn't give you the f option.;;..

Resolved. Thank you.


2022-09-22 16:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.