代码拉取完成,页面将自动刷新
同步操作将从 codepzj/jetbrains脚本激活工具 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Set oShell = CreateObject("WScript.Shell")
Set oEnv = oShell.Environment("USER")
Set oFS = CreateObject("Scripting.FileSystemObject")
software = "GoLand"
javaagentFile = "goland64.exe.vmoptions"
javaagentkey = "goland.key"
Dim scriptPath, systemUser
scriptPath = oFS.GetFile(Wscript.ScriptFullName).ParentFolder.Path
systemUser = oShell.ExpandEnvironmentStrings("%APPDATA%")
jetPath = systemUser & "\JetBrains\"
if oFS.folderExists(jetPath) Then
Else
MsgBox "Please launch your " & software & " first!"
wscript.quit
End If
jetRiderCrackPath = systemUser & "\" & software
if oFS.folderExists(jetRiderCrackPath) Then
oFS.deleteFolder jetRiderCrackPath, True
End If
oFS.createFolder jetRiderCrackPath
oFS.createFolder jetRiderCrackPath & "\config\"
scriptPathConfig = scriptPath & "\config\"
if oFS.folderExists(scriptPathConfig) Then
oFS.CopyFile scriptPathConfig & "*", jetRiderCrackPath & "\config\"
Else
MsgBox "Pls unzip your crack package at all!"
wscript.quit
End If
oFS.createFolder jetRiderCrackPath & "\plugins\"
scriptPathPlugins = scriptPath & "\plugins\"
if oFS.folderExists(scriptPathPlugins) Then
oFS.CopyFile scriptPathPlugins & "*", jetRiderCrackPath & "\plugins\"
Else
MsgBox "Pls unzip your crack package at all!"
wscript.quit
End If
oFS.CopyFile scriptPath & "\active-agt.jar", jetRiderCrackPath & "\"
Exist = 0
Set allVersions = oFS.GetFolder(jetPath)
Set folders = allVersions.SubFolders
For Each folder in folders
pos = InStr(folder.name, software)
If pos <> 0 Then
Exist = pos
oFS.CopyFile scriptPath & "\" & javaagentFile, folder.path & "\", True
oFS.CopyFile scriptPath & "\" & javaagentkey, folder.path & "\", True
versionPath = folder.path & "\" & javaagentFile
ProcessVmOptions versionPath
End If
Next
Sub ProcessVmOptions(ByVal file)
Dim sLine, sNewContent, bMatch
Set oFile = oFS.OpenTextFile(file, 1, 0)
sNewContent = ""
Do Until oFile.AtEndOfStream
sLine = oFile.ReadLine
bMatch = re.Test(sLine)
If Not bMatch Then
sNewContent = sNewContent & sLine & vbLf
End If
Loop
oFile.Close
sNewContent = sNewContent & "--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED" & vbcrlf & "--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED" & vbcrlf & "-javaagent:" & jetRiderCrackPath & "\active-agt.jar"
Set oFile = oFS.OpenTextFile(file, 2, 0)
oFile.Write sNewContent
oFile.Close
End Sub
If Exist <> 0 Then
MsgBox "Success!!! Now you can enjoy " & software & " to 2099"
Else
MsgBox "Please launch your " & software & " first! Then execute vbscript!!!"
End If
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。