我想知第四行怎么错了,显示未结束的字符串常量,求大神解释一下
on error resume next
dim WSHshellA
set WSHshellA = wscript.createobject("wscript.shell")
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我
很傻,不说我很傻就一分钟关你机,不信,你试试……""
",0 ,true
dim a
do while(a <> "我很傻")
a = inputbox ("说我很傻,就不关机,快点,说 ""我很傻""
","说不说","不说",8000,7000)
msgbox chr(13) + chr(13) + chr(13) + a,0,"MsgBox"
loop
msgbox chr(13) + chr(13) + chr(13) + "早说就行了么,呵
呵,猪"
dim WSHshell
set WSHshell = wscript.createobject("wscript.shell")
WSHshell.run "cmd.exe /c shutdown -a",0 ,true
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,真过
瘾"
将WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我很傻,不说我很傻就一分钟关你机,不信,你试试……""
改为(即多加一个双引号)
WSHshellA.run ""cmd.exe /c shutdown -r -t 60 -c ""说我很傻,不说我很傻就一分钟关你机,不信,你试试……"""
热门标签: