• 远程注册组件


    Sub Register(strFilePath,regMethod)

        Dim theFile,strFile,oShell ,exitcode

        Set  theFile=oFs.GetFile(strFilePath)

        strFile=theFile.Path

        Set oShell=CreateObject("WScript.Shell")

        If regMethod="REG" then

          oShell.Run "C:\winnt\system32\regsvr32.exe /s" & strFile,0,False

          exitcode=oShell.Run("C:\.........";0,False)

          EchoB("regsvr32.exe exitcode=" & exitcode)

        Else

           oShell.Run "C:\winnt\system32\regsvr32.exe /u/s" & strFile,0,False

           exitcode=oShell.Run("C:\........";0,False)

           EchoB("regsvr32.exe exitcode=" & exitcode)

        End If 

        Clearup oShell

    End Sub

  • 相关阅读:
    linux ipsec
    inotify+rsync
    多实例tomcat
    Http和Nginx反代至Tomcat(LNMT、LAMT)
    cisco ipsec
    ansible基础
    Qt 汉字乱码
    Model/View
    面对焦虑
    QT中QWidget、QDialog及QMainWindow的区别
  • 原文地址:https://www.cnblogs.com/djcsch2001/p/2035752.html
Copyright © 2020-2023  润新知