SAP ECC6 SOLUTION MANAGER KEY 生成脚本 (VBS)
发布时间:2020-05-22 11:42:29 所属栏目:Windows 来源:互联网
导读:Solution Manager Key 生成器 复制本文档,存为 SolManKeyGen.vbs 执行 -------
''''''''''''''''''''''''''''''''''''''
' Solution Manager Key 生成器 '
'复制本文档,存为 SolManKeyGen.vbs '
' 执行 '
''''''''''''''''''''''''''''''''''''''
'-------------------------------------------------------
Dim SIDs,SNs,SERVs,msg,ENDs,KEYs
msg="系统标识 (3位)"
SIDs=InputBox(msg,"Solution Manager Key 生成器")
msg="系统编号 (2位)"
SNs=InputBox(msg,"Solution Manager Key 生成器")
msg="主机名(最多15位)"
SERVs=InputBox(msg,"Solution Manager Key 生成器")
KEYs=SolManKeyGen(SIDs,SERVs)
msg="Solution Manager Key"
ENDs=InputBox(msg,"Solution Manager Key 生成器",KEYs)
'-------------------------------------------------------
Function SolManKeyGen(SIDst,SNst,SERVst)
Dim SIDSNhex(5)
Dim SERVhex(15)
Dim reshex(5)
SIDSNstr = UCase(SIDst) + UCase(SNst)
SERVstr = UCase(SERVst)
For arrcnt = 1 To 5
SIDSNhex(arrcnt) = Asc(Mid(SIDSNstr,arrcnt,1))
Next
For arrcnt = 1 To Len(SERVstr)
SERVhex(arrcnt) = Asc(Mid(SERVstr,1))
Next
For arrcnt = Len(SERVstr) + 1 To 15
SERVhex(arrcnt) = 0
Next
If (Len(SERVstr) > 0) Then
If (Len(SERVstr) < 5) Then
For arrcnt = Len(SERVstr) + 1 To 5
SERVhex(arrcnt) = Asc(" ")
Next
End If
End If
If (Len(SERVstr) > 5) Then
If (Len(SERVstr) < 10) Then
For arrcnt = Len(SERVstr) + 1 To 10
SERVhex(arrcnt) = Asc(" ")
Next
End If
End If
If (Len(SERVstr) > 10) Then
If (Len(SERVstr) < 15) Then
For arrcnt = Len(SERVstr) + 1 To 15
SERVhex(arrcnt) = Asc(" ")
Next
End If
End If
For arrcnt = 1 To 5
reshex(arrcnt) = ((((0 Xor SIDSNhex(arrcnt)) Xor SERVhex(arrcnt)) Xor SERVhex(arrcnt + 5)) Xor SERVhex(arrcnt + 10))
Next
reshex(1) = reshex(1) Xor 84 Xor 0
reshex(2) = reshex(2) Xor 131 Xor 11
reshex(3) = reshex(3) Xor 194 Xor 46
reshex(4) = reshex(4) Xor 52 Xor 105
reshex(5) = reshex(5) Xor 119 Xor 188
hexstr = "0123456789ABCDEF"
resstr = ""
For arrcnt = 1 To 5
hihex = reshex(arrcnt) 16
lohex = reshex(arrcnt) Mod 16
resstr = resstr + Mid(hexstr,hihex + 1,1) + Mid(hexstr,lohex + 1,1)
Next
SolManKeyGen = resstr
End Function (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- ssms – 使用Windows身份验证时,如何在SQL Server Manageme
- php在windows环境下获得cpu内存实时使用率(推荐)
- windows-phone-7 – WP7政策检查
- Windows Server 2016-Active Directory域服务端口汇总
- win10 安装msi 提示2502、2503的错误代码(已成功解决)
- windows-mobile – Visual Studio 2010 Professional Beta
- 在Windows XP上从压缩标准库中嵌入Python 3.3
- JLink重刷固件(win7/win8/win10亲测可用)
- Windows Phone 8和Android可以通过Wifi Direct连接吗?
- 在Windows上设置Git Bash中提示的颜色
推荐文章
站长推荐
- window python2.7 ImportError: No module named
- Windows-8 – 可以在Windows 10/Windows 8/WinRT
- 使用本机Win32在“C”中读取文本文件(Unicode)
- 在Windows 10中,我们如何确定窗口所属的虚拟桌面
- windows – Eclipse颜色主题和OS LF
- cmd – 如何为特定应用程序强制传出ip? ForceBi
- Windows下的PHP 5.3.x安装 Zend Guard Loader教程
- windows-phone-8 – 新的Live磁贴在Windows Phon
- 区别Windows Azure和GoDaddy
- windows-vista – Windows XP vs Vista:NTFS结点
热点阅读
