刚才看了下
看了一段代码不太明白(就是远程关闭电脑的)
If Text2.Text = "" Then
MsgBox "请输入你要执行的计算机名!", , "提示"
Else
If Check1.Value = 1 Then a$ = "reboot_pc"
If Check2.Value = 1 Then a$ = "shutdown_pc"
If Check3.Value = 1 Then b$ = "now"
If Check4.Value = 1 Then b$ = Text1.Text
Path$ = Trim(Text2.Text)
file$ = "\\" + Path$ + "\c\reboot.yn"
MsgBox file$
Open file$ For Output As #1
Write #1, a$, b$
Close #1
End If
其中的reboot.yn是什么文件,C盘下面好象没有,所以执行的时候总是错误~~
我也是VB爱好者~~