仅两个侧边注释:
-
查询
HTML
具有
GetStringValue
对于不同的
Windows脚本主机
可执行版本(32位对64位,如下一个示例所示);
-
CreateFolder
方法可能需要提升的权限。
实例
:具有
strComputer = "."
以及下一修正案
'
oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
' the amendment in 29026643.vbs as follows:
Wscript.Echo VarType(strValue) & vbTab & TypeName(strValue)
'
我在Windows 8上得到了下一个输出,64位:
==>%windir%\sysWOW64\cscript.exe D:\VB_scripts\SO\29026643.vbs
1 Null
==>%windir%\system32\cscript.exe D:\VB_scripts\SO\29026643.vbs
8 String
==>
模拟输出(带窗口
echo
)具有不同版本的
wscript.exe
.
与
sub LyncFix
在基本
hta
(带有
msgbox
而不是
Wscript.Echo
)和不同版本的
mshta.exe
如下所示:
==>%winDir%\sysWOW64\mshta.exe D:\VB_scripts\SO\29026643.hta
==>%winDir%\system32\mshta.exe D:\VB_scripts\SO\29026643.hta