为.VBS和.JS文件添加右键以管理员运行菜单

标签: , , ,

摘自http://www.winhelponline.com/blog/adding-the-run-as-administrator-option-for-vbs-and-js-files/

1、下载script_runas.reg并保存到桌面

2、右键单击并选择合并

3、当弹出对话框时单击

Windows 7下调试VBS时经常没有权限而要使用管理员权限运行,加个右键菜单方便得多。

赞赏

微信赞赏支付宝赞赏

随机文章:

  1. WordPress创建标签云(Tags)页面
  2. 在Raspberry Pi树莓派上编译Node.js
  3. VBS使用Scripting.Dictionary字典对象
  4. VBS字符串的内部实现
  5. 用VBS解析JSON格式数据之VbsJson类

3 条评论 发表在“为.VBS和.JS文件添加右键以管理员运行菜单”上

  1. azziporah说道:

    擦 写入的数据是hex
    这个是神马原理

  2. yu2n说道:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\Shell\runas\Command]
    @=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,\
    6d,00,64,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,63,00,20,00,22,00,25,\
    00,31,00,22,00,20,00,25,00,2a,00,00,00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\cmdfile\Shell\runas\Command]
    @=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,\
    6d,00,64,00,2e,00,65,00,78,00,65,00,22,00,20,00,2f,00,63,00,20,00,22,00,25,\
    00,31,00,22,00,20,00,25,00,2a,00,00,00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\VBSFile\Shell\runas\Command]
    @=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,57,00,\
    53,00,63,00,72,00,69,00,70,00,74,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\
    00,25,00,31,00,22,00,20,00,25,00,2a,00,00,00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\JSFile\Shell\runas\Command]
    @=hex(2):22,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
    00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,57,00,\
    53,00,63,00,72,00,69,00,70,00,74,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,\
    00,25,00,31,00,22,00,20,00,25,00,2a,00,00,00

留下回复