为.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. VBS练习题——计算1到100的和
  2. MS-DOS 7.1与GNU GPL协议
  3. TL-WR703N进入OpenWrt的Failsafe安全模式
  4. 用VBS精确计算100的阶乘
  5. jQuery mouseover mouseout事件在IE下闪烁的解决方法

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

留下回复