一个愚蠢的API调用问题----如何重起计算机。
cmcx 2003-09-08 03:52:10 我就想调用API实现重新启动或者关闭计算机,写了下面的代码,都不好用,不知道为什么。
Private Sub Command4_Click()
Shell "rundll32.exe user.exe,exitwindowsexec", vbHide
Shell "rundll32.exe user.exe,restartwindows"
Shell "rundll32.exe user.exe,exitwindows"
End Sub
什么原因呢?
应该怎么实现,请大虾们给些指点!谢谢!