I'm making something to prank my friend when he finishes a game I'm making his computer will shut off. But I don't know where to start.
            Asked
            
        
        
            Active
            
        
            Viewed 57 times
        
    -2
            
            
        - 
                    1https://stackoverflow.com/questions/102567 – Robert Harvey Oct 27 '22 at 19:09
2 Answers
1
            
            
        Try this code:
using System.Diagnostics;
using System.Runtime.InteropServices; 
Process.Start("shutdown","/s /t 0"); 
 
    
    
        MrMustafaDev22
        
- 77
- 5
 
    