by Kourosh (1 Submission)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 6th May 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Shut down your computer with one line of code (NO API)
'This code works in Windows 98 and 95 only (NT does not support this)
'Invisible the form
me.visible = false
'Shut down the computer
shell "rundll32.exe user.exe,exitwindows"
End Sub