zoukankan      html  css  js  c++  java
  • Using VBScript to edit Registry.

    使用VBScript編輯註冊表, 設定電腦允許ActiveX的才可以! 不知道使用ASP.NET如何寫?

      <script language="VBScript">
       dim hkey_root,hkey_path,hkey_key
       hkey_root="HKEY_CURRENT_USER"
       hkey_path="\Software\Microsoft\Internet Explorer\PageSetup"
        'on error resume next
        Set RegWsh = CreateObject("WScript.Shell")
        hkey_key="\header"   
        RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"" '//清空頁眉
        hkey_key="\footer"
        RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"" '//清空頁腳
        hkey_key="\margin_top"
        RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"0.74803" '//19mm
        hkey_key="\margin_bottom"
        RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"0.74803" '//19mm
        hkey_key="\margin_left"
        RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"0.74803" '//19mm
        hkey_key="\margin_right"
        RegWsh.RegWrite hkey_root+hkey_path+hkey_key,"0.74803" '//19mm
          
      '//
      </script>

  • 相关阅读:
    jQuery:一些小练习
    jQuery
    JavaWeb:笔记(三)
    JavaWeb:笔记(二)
    JavaWeb:笔记(一)
    JavaWeb:文件的上传下载
    JavaWeb:Listener
    基于RRT的机器人自主探索建图
    OpenNI2安装
    g2o初始化一些
  • 原文地址:https://www.cnblogs.com/Dream/p/10240.html
Copyright © 2011-2022 走看看