利用vbs脚本设置IE的打印页眉页脚信息(原创)

作者:简简单单 2008-01-18
将下面的内容保存成.vbs文件,然后双击执行,在打开ie页面,在页面中点击右键,看看菜单中多了个什么!!:)
    Option Explicit
    
    dim hkey_root,hkey_path,hkey_key,filePath
    dim fs,fso,RegWsh
    hkey_root="HKEY_CURRENT_USER"
    hkey_path="SoftwareMicrosoftInternet Explorer"
    '//先创建文件
    set fs=Wscript.CreateObject("Scripting.FileSystemObject")
    filePath="C:pagesetup_default.htm"
    set fso=fs.CreateTextFile(filePath,true)
    fso.write("