WScript 的问题!!

yagas 2003-08-07 10:30:00
Set wso=CreateObject("WScript.Shell")
wso.RegWrite "HKEY_CLASSES_ROOT\*\shell\a1\","以记事本打开"
wso.RegWrite "HKEY_CLASSES_ROOT\*\shell\a1\command","notepad.exe %1"
msgbox "添加成功!",64,"任务完成"
---------------------------------------------------------->>>
以上写入的都是字符串值,如何才能写入别的类型的值。
如:二进制值,DWORD值等等!!
...全文
26 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
IMHELLFIRE 2003-08-07
  • 打赏
  • 举报
回复
object.RegWrite(strName, anyValue [,strType])

The four possible data types you can specify with strType are listed in the following table.

Type Description In the Form of
REG_SZ A string A string
REG_DWORD A number An integer
REG_BINARY A binary value An integer
REG_EXPAND_SZ An expandable string A string
(e.g., "%windir%\\calc.exe")

7,766

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧