早教吧作业答案频道 -->其他-->
英语翻译onerrorresumenextdimWSHshellAsetWSHshellA=wscript.createobject("wscript.shell")WSHshellA.run"cmd.exe/cshutdown-r-t60-c""说我是猪,不说我是猪就一分钟关你机,不信,试试···""",0,truedimadowhile(a"
题目详情
英语翻译
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) + "哈哈哈哈,真过瘾"
还有为什么要用.VBE的后缀呢!不解.
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) + "哈哈哈哈,真过瘾"
还有为什么要用.VBE的后缀呢!不解.
▼优质解答
答案和解析
on error resume next '防止出现意外错误
dim WSHshellA '定义变量WSHshellA
set WSHshellA = wscript.createobject("wscript.shell") '创建对象WSHshellA,用于运行程序等
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true '隐藏执行关机命令,这里应该把true去掉
dim a '定义变量a
do while(a "我是猪") '当变量a"我是猪"时,继续循环
a = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000) '建立对象a,用于用户输入信息
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 '隐藏执行放弃关机命令,这里true应该去掉
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,真过瘾" '弹出对话框
dim WSHshellA '定义变量WSHshellA
set WSHshellA = wscript.createobject("wscript.shell") '创建对象WSHshellA,用于运行程序等
WSHshellA.run "cmd.exe /c shutdown -r -t 60 -c ""说我是猪,不说我是猪就一分钟关你机,不信,试试···"" ",0 ,true '隐藏执行关机命令,这里应该把true去掉
dim a '定义变量a
do while(a "我是猪") '当变量a"我是猪"时,继续循环
a = inputbox ("说我是猪,就不关机,快撒,说 ""我是猪"" ","说不说","不说",8000,7000) '建立对象a,用于用户输入信息
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 '隐藏执行放弃关机命令,这里true应该去掉
msgbox chr(13) + chr(13) + chr(13) + "哈哈哈哈,真过瘾" '弹出对话框
看了 英语翻译onerrorres...的网友还看了以下:
已知:2H2(g)+O2(g)=2H2O(l)△H=−571.6kJ⋅mol−12CH3OH(l) 2020-04-07 …
已知:2H2(g)+O2(g)=2H2O(l)ΔH=-571.6kJ·mol-12CH3OH(l) 2020-04-07 …
.已知:2H2(g)+O2(g)===2H2O(l)ΔH=-571.6kJ·mol-12CH3OH 2020-04-07 …
已知:2H2(g)+O2(g)=2H2O(l)ΔH=-571.6kJ·mol-1①2CH3OH(l 2020-04-07 …
氢气、一氧化碳、辛烷、甲烷的热化学方程式分别为H2(g)+1/2O2(g)H2O(l);ΔH=-2 2020-05-13 …
化学反应中的热量应用1.2A(l)+B(l)=2C(g);△H=+Q12.2A(g)+B(g)=2 2020-06-04 …
我的山地车是18速的,右把是数字,左把有两个大写字母,一个是H,一个是L.H是heavy(沉的), 2020-06-09 …
Ⅰ、(1)已知下列两个热化学方程式:H2(g)+O2(g)===H2O(l)ΔH=-285.0kJ 2020-07-19 …
(1)已知:H2(g)+1/2O2(g)=H2O(l)ΔH=-285.8kJ·mol-1H2(g) 2020-07-19 …
三元一次方程组a*x+b*y+c*z+d=0,e*x+f*y+g*z+h=0,i*x+j*y+k* 2020-08-03 …