兴国资源网 Design By www.nnzcdc.com
将下面的内容保存成.vbs文件,然后双击执行,在打开ie页面,在页面中点击右键,看看菜单中多了个什么!!:)
复制代码 代码如下:
option explicit
dim hkey_root,hkey_path,hkey_key,filepath
dim fs,fso,regwsh
hkey_root="hkey_current_user"
hkey_path="\software\microsoft\internet explorer"
//先创建文件
set fs=wscript.createobject("scripting.filesystemobject")
filepath="c:\pagesetup_default.htm"
set fso=fs.createtextfile(filepath,true)
fso.write("<script language=""vbscript"">"+vbcrlf _
+"dim hkey_root,hkey_path,hkey_key,filepath,regwsh" +vbcrlf _
+"hkey_root=""hkey_current_user""" +vbcrlf _
+"hkey_path=""\software\microsoft\internet explorer""" +vbcrlf _
+"filepath=""c:\pagesetup_null.htm""" +vbcrlf _
+"//设置网页打印的页眉页脚为默认值"+vbcrlf _
+"set regwsh = createobject(""wscript.shell"")" +vbcrlf _
+"hkey_key=""\pagesetup\header""" +vbcrlf _
+"regwsh.regwrite hkey_root+hkey_path+hkey_key,""&w&b页码:&p/&p""" +vbcrlf _
+"hkey_key=""\pagesetup\footer""" +vbcrlf _
+"regwsh.regwrite hkey_root+hkey_path+hkey_key,""&u&b&d""" +vbcrlf _
+"//设置右键菜单上的显示文字" +vbcrlf _
+"//首先删除原来的项,然后再设置新的项"+vbcrlf _
+"on error resume next" +vbcrlf _
+"hkey_key=hkey_root+hkey_path+""\menuext\打印时恢复页眉页脚\""" +vbcrlf _
+"regwsh.regdelete hkey_key" +vbcrlf _
+"hkey_key=hkey_root+hkey_path+""\menuext\打印时去掉页眉页脚\""" +vbcrlf _
+"regwsh.regwrite hkey_key,filepath" +vbcrlf _
+"//关闭regwsh" +vbcrlf _
+"set regwsh=nothing"+vbcrlf _
+"</script>")
fso.close
filepath="c:\pagesetup_null.htm"
set fso=fs.createtextfile(filepath,true)
fso.write("<script language=""vbscript"">" +vbcrlf _
+"dim hkey_root,hkey_path,hkey_key,filepath,regwsh" +vbcrlf _
+"hkey_root=""hkey_current_user""" +vbcrlf _
+"hkey_path=""\software\microsoft\internet explorer""" +vbcrlf _
+"filepath=""c:\pagesetup_default.htm""" +vbcrlf _
+"//设置网页打印的页眉页脚为空" +vbcrlf _
+"set regwsh =createobject(""wscript.shell"")" +vbcrlf _
+"hkey_key=""\pagesetup\header""" +vbcrlf _
+"regwsh.regwrite hkey_root+hkey_path+hkey_key,""""" +vbcrlf _
+"hkey_key=""\pagesetup\footer""" +vbcrlf _
+"regwsh.regwrite hkey_root+hkey_path+hkey_key,""""" +vbcrlf _
+"//设置右键菜单上的显示文字" +vbcrlf _
+"//首先删除原来的项,然后再设置新的项" +vbcrlf _
+"on error resume next"+vbcrlf _
+"hkey_key=hkey_root+hkey_path+""\menuext\打印时去掉页眉页脚\""" +vbcrlf _
+"regwsh.regdelete hkey_key"+vbcrlf _
+"hkey_key=hkey_root+hkey_path+""\menuext\打印时恢复页眉页脚\""" +vbcrlf _
+"regwsh.regwrite hkey_key,filepath" +vbcrlf _
+"//关闭regwsh" +vbcrlf _
+"set regwsh=nothing"+vbcrlf _
+"</script>")
fso.close
set regwsh=wscript.createobject("wscript.shell")
hkey_key=hkey_root+hkey_path+"\menuext\打印时去掉页眉页脚\"
regwsh.regwrite hkey_key,"c:\pagesetup_null.htm"
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!
复制代码 代码如下:
option explicit
dim hkey_root,hkey_path,hkey_key,filepath
dim fs,fso,regwsh
hkey_root="hkey_current_user"
hkey_path="\software\microsoft\internet explorer"
//先创建文件
set fs=wscript.createobject("scripting.filesystemobject")
filepath="c:\pagesetup_default.htm"
set fso=fs.createtextfile(filepath,true)
fso.write("<script language=""vbscript"">"+vbcrlf _
+"dim hkey_root,hkey_path,hkey_key,filepath,regwsh" +vbcrlf _
+"hkey_root=""hkey_current_user""" +vbcrlf _
+"hkey_path=""\software\microsoft\internet explorer""" +vbcrlf _
+"filepath=""c:\pagesetup_null.htm""" +vbcrlf _
+"//设置网页打印的页眉页脚为默认值"+vbcrlf _
+"set regwsh = createobject(""wscript.shell"")" +vbcrlf _
+"hkey_key=""\pagesetup\header""" +vbcrlf _
+"regwsh.regwrite hkey_root+hkey_path+hkey_key,""&w&b页码:&p/&p""" +vbcrlf _
+"hkey_key=""\pagesetup\footer""" +vbcrlf _
+"regwsh.regwrite hkey_root+hkey_path+hkey_key,""&u&b&d""" +vbcrlf _
+"//设置右键菜单上的显示文字" +vbcrlf _
+"//首先删除原来的项,然后再设置新的项"+vbcrlf _
+"on error resume next" +vbcrlf _
+"hkey_key=hkey_root+hkey_path+""\menuext\打印时恢复页眉页脚\""" +vbcrlf _
+"regwsh.regdelete hkey_key" +vbcrlf _
+"hkey_key=hkey_root+hkey_path+""\menuext\打印时去掉页眉页脚\""" +vbcrlf _
+"regwsh.regwrite hkey_key,filepath" +vbcrlf _
+"//关闭regwsh" +vbcrlf _
+"set regwsh=nothing"+vbcrlf _
+"</script>")
fso.close
filepath="c:\pagesetup_null.htm"
set fso=fs.createtextfile(filepath,true)
fso.write("<script language=""vbscript"">" +vbcrlf _
+"dim hkey_root,hkey_path,hkey_key,filepath,regwsh" +vbcrlf _
+"hkey_root=""hkey_current_user""" +vbcrlf _
+"hkey_path=""\software\microsoft\internet explorer""" +vbcrlf _
+"filepath=""c:\pagesetup_default.htm""" +vbcrlf _
+"//设置网页打印的页眉页脚为空" +vbcrlf _
+"set regwsh =createobject(""wscript.shell"")" +vbcrlf _
+"hkey_key=""\pagesetup\header""" +vbcrlf _
+"regwsh.regwrite hkey_root+hkey_path+hkey_key,""""" +vbcrlf _
+"hkey_key=""\pagesetup\footer""" +vbcrlf _
+"regwsh.regwrite hkey_root+hkey_path+hkey_key,""""" +vbcrlf _
+"//设置右键菜单上的显示文字" +vbcrlf _
+"//首先删除原来的项,然后再设置新的项" +vbcrlf _
+"on error resume next"+vbcrlf _
+"hkey_key=hkey_root+hkey_path+""\menuext\打印时去掉页眉页脚\""" +vbcrlf _
+"regwsh.regdelete hkey_key"+vbcrlf _
+"hkey_key=hkey_root+hkey_path+""\menuext\打印时恢复页眉页脚\""" +vbcrlf _
+"regwsh.regwrite hkey_key,filepath" +vbcrlf _
+"//关闭regwsh" +vbcrlf _
+"set regwsh=nothing"+vbcrlf _
+"</script>")
fso.close
set regwsh=wscript.createobject("wscript.shell")
hkey_key=hkey_root+hkey_path+"\menuext\打印时去掉页眉页脚\"
regwsh.regwrite hkey_key,"c:\pagesetup_null.htm"
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!
兴国资源网 Design By www.nnzcdc.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
免责声明:本站资源来自互联网收集,仅供用于学习和交流,请遵循相关法律法规,本站一切资源不代表本站立场,如有侵权、后门、不妥请联系本站删除!
兴国资源网 Design By www.nnzcdc.com
暂无评论...
稳了!魔兽国服回归的3条重磅消息!官宣时间再确认!
昨天有一位朋友在大神群里分享,自己亚服账号被封号之后居然弹出了国服的封号信息对话框。
这里面让他访问的是一个国服的战网网址,com.cn和后面的zh都非常明白地表明这就是国服战网。
而他在复制这个网址并且进行登录之后,确实是网易的网址,也就是我们熟悉的停服之后国服发布的暴雪游戏产品运营到期开放退款的说明。这是一件比较奇怪的事情,因为以前都没有出现这样的情况,现在突然提示跳转到国服战网的网址,是不是说明了简体中文客户端已经开始进行更新了呢?
更新日志
2024年05月21日
2024年05月21日
- 《邓紫棋精选》[FLAC/分轨][980MB]
- 出发吧麦芬尤米尔深渊试炼怎么过 尤米尔深渊阵容打法攻略
- dnf属性lv转移是什么意思
- dnf属性成长用什么材料
- 《贪婪之秋2》登陆平台介绍
- 《机器节奏》成就达成条件一览
- 2024年04月13日
- TOGE-12083-84【TchaikovskySwanlake-AndrePrevin】2CD【ISO】
- SusieArioli,JordanOfficer-NightLights[SP1020](2014)[FLAC]
- 东野圭吾改编新片《彷徨之刃》豆瓣6.6:寡淡又平庸
- 游戏史的绝对经典 CDPR庆祝《巫师3》9周年纪念!
- 波音又出事!一架载468人大型客机的引擎突然起火
- 群星.1994-华纳IN爆榜3辑【华纳】【WAV+CUE】
- 古巨基.2008-GUITAR.FEVER(LPCD45)【金牌大风】【WAV+CUE】
- 自然卷.2005-大卷包小卷【风和日丽】【WAV+CUE】