新手,vb简单定时关机代码,错哪了
新手请指教,vb简单定时关机代码,哪里错了
界面如图,哪里错了求详细指导,谢谢

------解决方案--------------------
加一个空格在shutdown后面看看。
------解决方案--------------------
Option Explicit
Private Sub Check1_Click()
If Check1.Value = 1 Then
Text1.Enabled = True Else
Text1.Enabled = False
End If
End Sub
Private Sub Command1_Click()
If Text1.Enabled = True Then
Shell "shutdown-S -t" & Text1.Text
Else
Shell "shutdown-S -t3"
End If
End Sub
Private Sub Command2_Click()
If Text1.Enabled = True Then
Shell "shutdown-R -t" & Text1.Text
Else
Shell "shutdown-R -t3"
End If
End Sub
Private Sub Command3_Click()
End
End Sub
界面如图,哪里错了求详细指导,谢谢
VB
关机
定时
------解决方案--------------------
"shutdown -S -t" & Text1.Text
加一个空格在shutdown后面看看。
------解决方案--------------------
Shell "shutdown-S -t " & Text1.Text