英语翻译dim fso,oshell,command1,command2,pathpath = "F:\\工具\IP\I
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/12 07:00:06
英语翻译
dim fso,oshell,command1,command2,path
path = "F:\\工具\IP\IP属性.exe"
command1 = "E:\\eaisone\Ip\2KXP.exe"
command2="F:\\工具\IP\IP属性.exe"
set oshell = wscript.createobject ("wscript.shell")
set fso = createobject("scripting.filesystemobject")
if (fso.fileexists(path)) then
oshell.run command2
else
oshell.run command1
end if
set oshell=nothing
set fso=nothing
dim fso,oshell,command1,command2,path
path = "F:\\工具\IP\IP属性.exe"
command1 = "E:\\eaisone\Ip\2KXP.exe"
command2="F:\\工具\IP\IP属性.exe"
set oshell = wscript.createobject ("wscript.shell")
set fso = createobject("scripting.filesystemobject")
if (fso.fileexists(path)) then
oshell.run command2
else
oshell.run command1
end if
set oshell=nothing
set fso=nothing
dim fso,oshell,command1,command2,path
*对上述变量fso,oshell,command1,command2,path 进行定义;
path = "F:\\工具\IP\IP属性.exe"
*path路径变量的值为“F:\\工具\IP\IP属性.exe”,即表示“存储在F盘工具文件夹下的IP文件夹下的名为"IP属性"”的可执行文件;
command1 = "E:\\eaisone\Ip\2KXP.exe"
*command1路径变量的值为"E:\\eaisone\Ip\2KXP.exe"的文件,即E盘文件夹eaisone下名为Ip的子文件夹下的名为“2KXP”的可执行文件.
command2="F:\\工具\IP\IP属性.exe"
*command2变量值为"F:\\工具\IP\IP属性.exe",即F盘下IP文件夹下的名为“IP属性”的可执行文件;
set oshell = wscript.createobject ("wscript.shell")
*设置oshell值为wscript.createobject ("wscript.shell") ;
set fso = createobject("scripting.filesystemobject")
*设置fso值为createobject("scripting.filesystemobject") ;
if (fso.fileexists(path)) then
*若fso.fileexists的路径值符合设定值,则运行
oshell.run command2
*“IP属性”这一可执行文件
else 否则
oshell.run command1
*运行“2KXP”这一可执行文件
end if
set oshell=nothing *最后将oshell设置为空值;
set fso=nothing *将fso设置为空值;
*对上述变量fso,oshell,command1,command2,path 进行定义;
path = "F:\\工具\IP\IP属性.exe"
*path路径变量的值为“F:\\工具\IP\IP属性.exe”,即表示“存储在F盘工具文件夹下的IP文件夹下的名为"IP属性"”的可执行文件;
command1 = "E:\\eaisone\Ip\2KXP.exe"
*command1路径变量的值为"E:\\eaisone\Ip\2KXP.exe"的文件,即E盘文件夹eaisone下名为Ip的子文件夹下的名为“2KXP”的可执行文件.
command2="F:\\工具\IP\IP属性.exe"
*command2变量值为"F:\\工具\IP\IP属性.exe",即F盘下IP文件夹下的名为“IP属性”的可执行文件;
set oshell = wscript.createobject ("wscript.shell")
*设置oshell值为wscript.createobject ("wscript.shell") ;
set fso = createobject("scripting.filesystemobject")
*设置fso值为createobject("scripting.filesystemobject") ;
if (fso.fileexists(path)) then
*若fso.fileexists的路径值符合设定值,则运行
oshell.run command2
*“IP属性”这一可执行文件
else 否则
oshell.run command1
*运行“2KXP”这一可执行文件
end if
set oshell=nothing *最后将oshell设置为空值;
set fso=nothing *将fso设置为空值;
英语翻译dim fso,oshell,command1,command2,pathpath = "F:\\工具\IP\I
VB中move的意思就是command1.move command2.;eft,command2.top中的move的意
例子1.在窗体内创建文本框和按钮分别命名为Text1和command2在命令按钮下输入代码dim a as 整形a =
英语翻译Dim items(10,2),maxItemsmaxItems = 9items(0,0) = "节点 1"i
英语翻译Dim s,i,j,arr(1 To 10),t,sumFor i = 1 To 10s = InputBox(
英语翻译dim conn dim connstrdb="baoxiuyijian.mdb"connstr="DBQ="+
DIM AS INTEGER A(6),I,T,J,P T=0 FOR I=1 TO 6:A(I)=7-I:NEXT F
英语翻译可不可以逐行帮我翻译一下,我不太懂.Dim i&,ar,d As ObjectSet d = CreateObj
解一道vb函数题,private sub command1 _click(),for i =1to4 ,for j =1
dim i as integer dim sum as integer sum=0 for i=0 to 5 sum=s
VB dim x as integer dim i as integer x = 100 for i = 1 to 10
Dim a(1 To 10) As Integer Dim i As Integer a(1) = 1 For i =