Hi need to shut down my computer using c# and i have tried this code :
Process.Start("shutdown","/s");
but the problem is that this code forces all running application to close
like if i am having an opened document in notepad this code will close the notepad without saving and i don't want that to happen
Thank you