I have tested this On Win7x64, Vistax32, XPx32
I have updated this app
GetKey_V3
Source Code GetKey_V3
New Source Code Get_KeyV1
New Get_KeyV1
Attached File(s)
-
GetKey.exe (53.5K)
Number of downloads: 296
Posted 03 February 2009 - 11:46 PM
GetKey.exe (53.5K)
Posted 04 February 2009 - 01:55 AM
Posted 04 February 2009 - 04:11 AM
Posted 04 February 2009 - 06:12 AM
Posted 04 February 2009 - 06:18 AM
cluberti, on Feb 4 2009, 08:55 AM, said:
Posted 04 February 2009 - 08:26 AM
CoffeeFiend, on Feb 4 2009, 12:12 PM, said:
MagicAndre1981, on Feb 4 2009, 12:18 PM, said:
cluberti, on Feb 4 2009, 08:55 AM, said:
Posted 04 February 2009 - 09:45 AM
Quote
Imports System.IO
Public Class Form1
Dim Desktop = Microsoft.VisualBasic.CreateObject("Wscript.Shell").SpecialFolders("Desktop")
Dim KeyTxt = Desktop & "\" & My.Computer.Name & "_Key.txt"
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label1.Text = ""
Label2.Text = "Gunsmokingman Get OS Key"
End Sub
'-> Get The OS Key
Dim OsKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
Function GetKey(ByVal rpk)
Dim i, j
Dim dwAccumulator = "", szProductKey = ""
Const rpkOffset = 52 : i = 28
Dim szPossibleChars = "BCDFGHJKMPQRTVWXY2346789"
Do
dwAccumulator = 0 : j = 14
Do
dwAccumulator = dwAccumulator * 256
dwAccumulator = rpk(j + rpkOffset) + dwAccumulator
rpk(j + rpkOffset) = (dwAccumulator \ 24) And 255
dwAccumulator = dwAccumulator Mod 24
j = j - 1
Loop While j >= 0
i = i - 1 : szProductKey = Mid(szPossibleChars, dwAccumulator + 1, 1) & szProductKey
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i - 1 : szProductKey = "-" & szProductKey
End If
Loop While i >= 0
GetKey = szProductKey
Label1.Text = szProductKey
End Function
'-> Button1 Get The Os Key
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Button1.Text = "Get Key" Then
Button1.Text = "Clear Key"
GetKey(Microsoft.VisualBasic.CreateObject("Wscript.Shell").RegRead(OsKey))
Else
Button1.Text = "Get Key"
Label1.Text = ""
End If
End Sub
'-> Button2 Save The Os Key
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If Label1.Text = "" Then
MsgBox(Space(6) & "Error No Key Text" & vbCrLf & _
" Press The Get Key Button" & vbCrLf & _
" Then Press The Save Key", 4128)
Else
Dim sw As StreamWriter = New StreamWriter(KeyTxt.ToString)
sw.WriteLine(" Saved At " & Chr(187) & Chr(160) & KeyTxt.ToString)
sw.WriteLine(" Os Key " & Chr(187) & Chr(160) & Label1.Text)
sw.Close()
Microsoft.VisualBasic.CreateObject("Wscript.Shell").Run(Chr(34) & KeyTxt.ToString & Chr(34), 1, True)
End If
End Sub
End Class
This post has been edited by gunsmokingman: 01 January 2010 - 11:52 PM
Posted 04 February 2009 - 04:34 PM
Yzöwl, on Feb 4 2009, 09:26 AM, said:
Yzöwl, on Feb 4 2009, 09:26 AM, said:
Yzöwl, on Feb 4 2009, 09:26 AM, said:
This post has been edited by CoffeeFiend: 04 February 2009 - 04:45 PM
Posted 04 February 2009 - 06:22 PM
Posted 04 February 2009 - 06:26 PM
Posted 04 February 2009 - 07:23 PM
CoffeeFiend, on Feb 4 2009, 06:26 PM, said:
Posted 04 February 2009 - 09:30 PM
Posted 13 February 2009 - 12:16 PM
Quote
Imports System
Imports System.IO
Public Class Form1
Const GB = 1073741824
Const MB = 1048576
Dim Act = Microsoft.VisualBasic.CreateObject("Wscript.Shell")
Dim RamSize = My.Computer.Info.TotalPhysicalMemory
Dim CName = My.Computer.Name
Dim R_A = Chr(160) & Chr(187) & Chr(160)
'-> On Load Clear Text
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextGone()
End Sub
'-> Clear The Text Display Information
Private Sub TextGone()
Txt1b.Text = ""
Txt2b.Text = ""
Txt3b.Text = ""
Txt4b.Text = ""
SaveText.Enabled = False
End Sub
'-> Get Installed Ram Total
Dim RamInstalled
Private Sub InstalledRam()
If RamSize < GB Then
Txt2b.Text = FormatNumber(RamSize / MB, 2) & " MB"
Else
Txt2b.Text = FormatNumber(RamSize / GB, 2) & " GB"
End If
RamInstalled = " Install Ram " & R_A & Txt2b.Text
End Sub
'-> Get Install Date
Dim InstallDate
Private Sub InstalledDate()
Dim Wmi = GetObject("winmgmts:\\.\root\CIMV2")
Dim IDate = Microsoft.VisualBasic.CreateObject("WbemScripting.SWbemDateTime")
For Each Obj In Wmi.ExecQuery("SELECT * FROM Win32_OperatingSystem")
IDate.Value = Obj.InstallDate
Dim T1 = Microsoft.VisualBasic.MonthName(IDate.Month.ToString)
Dim T2 = Microsoft.VisualBasic.WeekdayName(IDate.Day.ToString)
Txt3b.Text = T1 & "," & T2 & " " & IDate.GetVarDate
InstallDate = " Install Date " & R_A & Txt3b.Text
Next
Wmi = Nothing
End Sub
'-> Get The OS Key
Dim OsKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
Dim Key
Function GetKey(ByVal rpk)
Dim i, j
Dim dwAccumulator = "", KeyOs = ""
Const rpkOffset = 52 : i = 28
Dim szPossibleChars = "BCDFGHJKMPQRTVWXY2346789"
Do
dwAccumulator = 0 : j = 14
Do
dwAccumulator = dwAccumulator * 256
dwAccumulator = rpk(j + rpkOffset) + dwAccumulator
rpk(j + rpkOffset) = (dwAccumulator \ 24) And 255
dwAccumulator = dwAccumulator Mod 24
j = j - 1
Loop While j >= 0
i = i - 1 : KeyOs = Mid(szPossibleChars, dwAccumulator + 1, 1) & KeyOs
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i - 1 : KeyOs = "-" & KeyOs
End If
Loop While i >= 0
GetKey = KeyOs
Txt4b.Text = KeyOs
Key = " OS Key " & R_A & KeyOs
End Function
'-> Show Text Information
Dim CmpName
Private Sub ShowText_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ShowText.Click
Txt1b.Text = CName
CmpName = " Computer Name " & R_A & CName
InstalledRam()
InstalledDate()
GetKey(Act.RegRead(OsKey))
SaveText.Enabled = True
End Sub
'-> Clear The Text Information
Private Sub ClearText_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ClearText.Click
TextGone()
End Sub
'-> Save Text Information
Private Sub SaveText_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveText.Click
Dim Desktop = Act.SpecialFolders("Desktop")
Dim KeyTxt = Desktop & "\" & My.Computer.Name & "_InstallInfo.txt"
Dim sw As StreamWriter = New StreamWriter(KeyTxt.ToString)
sw.WriteLine(" Save Location " & R_A & KeyTxt.ToString)
sw.WriteLine(CmpName)
sw.WriteLine(RamInstalled)
sw.WriteLine(InstallDate)
sw.WriteLine(Key)
sw.Close()
Act.Run(Chr(34) & KeyTxt.ToString & Chr(34), 1, True)
End Sub
End Class
Posted 27 May 2009 - 09:09 PM
Quote
Dim T2 = Microsoft.VisualBasic.WeekdayName(IDate.Day.ToString)
Quote
Dim T2 = Microsoft.VisualBasic.WeekdayName(Microsoft.VisualBasic.Weekday(IDate.GetVarDate))
Quote
Imports System
Imports System.IO
Public Class Form1
Const GB = 1073741824
Const MB = 1048576
'-> Objects From VBS Script
Dim Act = Microsoft.VisualBasic.CreateObject("Wscript.Shell")
Dim Tme = Microsoft.VisualBasic.CreateObject("WbemScripting.SWbemDateTime")
Dim Wmi = GetObject("winmgmts:\\.\root\CIMV2")
'-> Text Output Objects
Dim R_A = Chr(160) & Chr(187) & Chr(160)
Dim Vb = vbCrLf
'-> Computer System Objects
Dim RamSize = My.Computer.Info.TotalPhysicalMemory
Dim CName = " Computer Name " & R_A & My.Computer.Name
'-> Get Installed Ram Total
Dim Ram1, Ram2
Private Sub InstalledRam()
If RamSize < GB Then
Ram1 = FormatNumber(RamSize / MB, 2) & " MB"
Else
Ram1 = FormatNumber(RamSize / GB, 2) & " GB"
End If
Ram2 = " Install Ram " & R_A & Ram1
End Sub
'-> Get Install Date
Dim InstallDate, LastBoot, OsName
Private Sub SystemTimeDateBoot()
Dim A1, A2, T1, T2
For Each Obj In Wmi.ExecQuery("SELECT * FROM Win32_OperatingSystem")
OsName = " Os Name " & R_A & Obj.Caption
Tme.Value = Obj.InstallDate
A1 = Tme.GetVarDate
T1 = Microsoft.VisualBasic.MonthName(Tme.Month.ToString)
T2 = Microsoft.VisualBasic.WeekdayName(Microsoft.VisualBasic.Weekday(A1))
InstallDate = " Install Date " & R_A & A1 & " " & T1 & "," & T2
Tme.Value = Obj.LastBootUpTime
A2 = Tme.GetVarDate
T1 = Microsoft.VisualBasic.MonthName(Tme.Month.ToString)
T2 = Microsoft.VisualBasic.WeekdayName(Microsoft.VisualBasic.Weekday(A2))
LastBoot = " Last Boot Up " & R_A & A2 & " " & T1 & "," & T2
Next
End Sub
'-> Disks Information
Dim HardDrive, Optical
Private Sub DiskInformation()
For Each Drv In My.Computer.FileSystem.Drives
If Drv.DriveType = DriveType.Fixed Then
HardDrive = HardDrive & Drv.Name & " "
End If
If Drv.DriveType = DriveType.CDRom Then
Optical = Optical & Drv.Name & " "
End If
Next
HardDrive = " Hard Disks " & R_A & HardDrive
Optical = " Optical Disks " & R_A & Optical
End Sub
'-> Get The OS Key
Dim OsKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"
Dim Key
Function GetKey(ByVal rpk)
Dim i, j
Dim dwAccumulator = "", KeyOs = ""
Const rpkOffset = 52 : i = 28
Dim szPossibleChars = "BCDFGHJKMPQRTVWXY2346789"
Do
dwAccumulator = 0 : j = 14
Do
dwAccumulator = dwAccumulator * 256
dwAccumulator = rpk(j + rpkOffset) + dwAccumulator
rpk(j + rpkOffset) = (dwAccumulator \ 24) And 255
dwAccumulator = dwAccumulator Mod 24
j = j - 1
Loop While j >= 0
i = i - 1 : KeyOs = Mid(szPossibleChars, dwAccumulator + 1, 1) & KeyOs
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i - 1 : KeyOs = "-" & KeyOs
End If
Loop While i >= 0
GetKey = KeyOs
Key = " OS Key " & R_A & KeyOs
End Function
'-> Button 01 Click Fill Textbox
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
InstalledRam()
SystemTimeDateBoot()
DiskInformation()
GetKey(Act.RegRead(OsKey))
TextBox1.Text = OsName & Vb & CName & Vb & _
Ram2 & Vb & _
InstallDate & Vb & _
LastBoot & Vb & _
HardDrive & Vb & _
Optical & Vb & _
Key
End Sub
'-> Button 02 Click Clear Textbox
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TextBox1.Text = ""
Key = ""
Optical = ""
HardDrive = ""
LastBoot = ""
InstallDate = ""
End Sub
'-> Button 03 Click Save Textbox
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If Not TextBox1.Text = "" Then
Dim Desktop = Act.SpecialFolders("Desktop")
Dim KeyTxt = Desktop & "\" & My.Computer.Name & "_BasicInfo.txt"
Dim sw As StreamWriter = New StreamWriter(KeyTxt.ToString)
sw.WriteLine(" Save Location " & R_A & KeyTxt.ToString)
sw.Write(TextBox1.Text)
sw.Close()
Act.Run(Chr(34) & KeyTxt.ToString & Chr(34), 1, False)
End If
End Sub
End Class
GetKey_V3.exe (57K)
Posted 01 January 2010 - 11:46 PM
Quote
Imports System
Imports System.IO
Public Class Form1
Const GB = 1073741824
Const MB = 1048576
'-> Objects From VBS Script
Dim Act = Microsoft.VisualBasic.CreateObject("Wscript.Shell")
Dim Tme = Microsoft.VisualBasic.CreateObject("WbemScripting.SWbemDateTime")
Dim Wmi = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\CIMV2")
'-> Output Varibles
Dim vB = vbCrLf
Dim ARW = Chr(160) & Chr(187) & Chr(160)
Dim Lne = "------------------------------------------------------------------"
'-> Varibles
Dim CName = My.Computer.Name
Dim OName = My.Computer.Info.OSFullName
Dim OsVer = My.Computer.Info.OSVersion
Dim SyRam = My.Computer.Info.TotalPhysicalMemory
Dim DigProID = "\DigitalProductId"
'-> Reg Key Varible
Dim RegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\"
'-> MsKeys(0) = Window Product Key
'-> MsKeys(1) = Office 2010
'-> MsKeys(2) = Office 2007
'-> MsKeys(3) = Office 2003
'-> MsKeys(4) = Office XP
Dim MsKeys() As String = { _
" Operating System Key " & ARW & RegKey & "Windows NT\CurrentVersion", _
" Office 14 2010 Key " & ARW & RegKey & "Office\14.0\Registration\{10140000-0011-0000-1000-0000000FF1CE}", _
" Office 12 2007 Key " & ARW & RegKey & "Office\12.0\Registration", _
" Office 11 2003 Key " & ARW & RegKey & "Office\11.0\Registration", _
" Office 10 XP Key " & ARW & RegKey & "Office\10.0\Registration"}
'-> Button Click Section
'-> Collect The Information
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim V1 = " Installed System Ram " & ARW
If My.Computer.Info.TotalPhysicalMemory > GB Then
SyRam = V1 & FormatNumber(My.Computer.Info.TotalPhysicalMemory / GB, 2) & " GB"
Else
SyRam = V1 & FormatNumber(My.Computer.Info.TotalPhysicalMemory / MB, 2) & " MB"
End If
TextBox1.Text = Lne & vB & _
" Computer System Name " & ARW & CName & vB & _
" Operating System Name " & ARW & OName & vB & _
" Os Version " & ARW & OsVer & vB & _
SyRam & vB
WmiQuerry()
TextBox1.ScrollBars = ScrollBars.Both
DiskInformation()
ListMSKeys()
End Sub
'-> Clear Text And Global Varibles
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TextBox1.Text = ""
HardDrive = ""
Optical = ""
Removable = ""
SyRam = ""
Tm1 = ""
Tm2 = ""
TxtVar1 = ""
TextBox1.ScrollBars = ScrollBars.None
End Sub
'-> Save The Information
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If Not TextBox1.Text = "" Then
Dim Desktop = Act.SpecialFolders("Desktop")
Dim KeyTxt = Desktop & "\" & My.Computer.Name & "_BasicInfo.txt"
Dim sw As StreamWriter = New StreamWriter(KeyTxt.ToString)
sw.Write(TextBox1.Text)
sw.Close()
Act.Run(Chr(34) & KeyTxt.ToString & Chr(34), 1, False)
End If
End Sub
'-> Code To Fill Textbox1
'-> Varible Used To Collect Various Microsoft Product Keys
Dim TxtVar1
Private Sub ListMSKeys()
For Each K In MsKeys
Dim Z1 = Split(K, ARW)
Dim A1 = Z1(1) & DigProID
Try
GetKey(Act.RegRead(A1))
TxtVar1 = TxtVar1 & Z1(0) & ARW & GetKey(Act.RegRead(A1)) & vbCrLf
Catch ex As Exception
End Try
Next
TextBox1.Text = TextBox1.Text & Lne & vB & TxtVar1
End Sub
'-> Wmi Querries
Dim Tm1
Dim Tm2
Private Sub WmiQuerry()
Dim Cpu = "", InDate = "", InTime = "", LBDate = "", LBTime = ""
For Each Obj In Wmi.ExecQuery("SELECT * FROM Win32_OperatingSystem")
If Obj.BuildNumber >= 6000 Then
Cpu = True
Else
Cpu = False
End If
Next
Dim T1 = " Number Of Processors "
For Each Obj In Wmi.ExecQuery("SELECT * FROM Win32_ComputerSystem")
If Cpu = True Then
Cpu = T1 & ARW & Obj.NumberOfProcessors & vB & _
" Logical Processors " & ARW & Obj.NumberOfLogicalProcessors
Else
Cpu = T1 & ARW & Obj.NumberOfProcessors
End If
TextBox1.Text = TextBox1.Text & _
" Computer System Type " & ARW & Obj.SystemType & vB & _
Cpu & vB
Next
Dim SysUpTime = ""
For Each Obj In Wmi.ExecQuery("SELECT * FROM Win32_OperatingSystem")
'-> Install Date
Tme.Value = Obj.InstallDate
Tm1 = Tme.GetVarDate
Tm2 = Split(Tme.GetVarDate, " ")
InDate = " Installed Date " & ARW & _
MonthName(Tme.Month) & ", " & WeekdayName(Weekday(Tm1)) & " " & Tme.Day & " " & Tme.Year
InTime = " Installed Time " & ARW & Tm2(1) & " " & Tm2(2)
'-> Last Boot Up
Tme.Value = Obj.LastBootUpTime
Tm1 = Tme.GetVarDate
Tm2 = Split(Tme.GetVarDate, " ")
LBDate = " Last Boot Date " & ARW & _
MonthName(Tme.Month) & ", " & WeekdayName(Weekday(Tm1)) & " " & Tme.Day & " " & Tme.Year
LBTime = " Last Boot Time " & ARW & Tm2(1) & " " & Tm2(2)
SysUpTime = " System Uptime Hours " & ARW & DateDiff("h", Tm1, Now)
Next
TextBox1.Text = TextBox1.Text & _
Lne & vB & _
InDate & vB & _
InTime & vB & _
LBDate & vB & _
LBTime & vB & _
SysUpTime & vB
End Sub
'-> Disks Information
Dim HardDrive, Optical, Removable
Private Sub DiskInformation()
For Each Drv In My.Computer.FileSystem.Drives
If Drv.DriveType = DriveType.Fixed Then
HardDrive = HardDrive & Drv.Name & " "
End If
If Drv.DriveType = DriveType.CDRom Then
Optical = Optical & Drv.Name & " "
End If
If Drv.DriveType = DriveType.Removable Then
Removable = Removable & Drv.Name & " "
End If
Next
HardDrive = " Local Hard Disks " & ARW & HardDrive
Optical = " Local Optical Drive " & ARW & Optical
Removable = " Local Removable Drive " & ARW & Removable
TextBox1.Text = TextBox1.Text & Lne & vB & HardDrive & vB & Optical & vB & Removable & vB
End Sub
'-> Get The OS Key
Dim Key
Function GetKey(ByVal rpk)
Dim i, j
Dim dwAccumulator = "", KeyOs = ""
Const rpkOffset = 52 : i = 28
Dim szPossibleChars = "BCDFGHJKMPQRTVWXY2346789"
Do
dwAccumulator = 0 : j = 14
Do
dwAccumulator = dwAccumulator * 256
dwAccumulator = rpk(j + rpkOffset) + dwAccumulator
rpk(j + rpkOffset) = (dwAccumulator \ 24) And 255
dwAccumulator = dwAccumulator Mod 24
j = j - 1
Loop While j >= 0
i = i - 1 : KeyOs = Mid(szPossibleChars, dwAccumulator + 1, 1) & KeyOs
If (((29 - i) Mod 6) = 0) And (i <> -1) Then
i = i - 1 : KeyOs = "-" & KeyOs
End If
Loop While i >= 0
GetKey = KeyOs
Key = KeyOs
End Function
'-> Code To Start The Graph Of Ram Usage
Dim SysRam
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
MachineRamSize()
RamF3.Text = ""
RamU3.Text = ""
RamInfoTxt.Visible = True
RamF1.Visible = True
RamF2.Visible = True
RamF3.Visible = True
RamU1.Visible = True
RamU2.Visible = True
RamU3.Visible = True
RamPanel.Visible = True
Timer1.Start()
End Sub
'-> Start The Timer To Update The Ram Graph
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
RamForGraph()
End Sub
Private Sub MachineRamSize()
If My.Computer.Info.TotalPhysicalMemory > GB Then
SysRam = FormatNumber(My.Computer.Info.TotalPhysicalMemory / GB, 2) & " GB "
Else
SysRam = FormatNumber(My.Computer.Info.TotalPhysicalMemory / MB, 2) & " MB "
End If
SysRam = " Total Ram " & ARW & SysRam
RamInfoTxt.Text = SysRam
End Sub
'-> Ram usage For Graph
Private Sub RamForGraph()
'-> Free Ram
Dim F3 = ""
If My.Computer.Info.AvailablePhysicalMemory > GB Then
F3 = FormatNumber(My.Computer.Info.AvailablePhysicalMemory / GB) & " GB "
ElseIf My.Computer.Info.AvailablePhysicalMemory < GB Then
F3 = FormatNumber(My.Computer.Info.AvailablePhysicalMemory / MB) & " MB "
End If
'-> Set The Free Percent Size
Dim F1 = FormatPercent(My.Computer.Info.AvailablePhysicalMemory / My.Computer.Info.TotalPhysicalMemory, 2)
Dim F2 = Replace(F1, "%", "")
F2 = F2 * 2.25
RamF3.Size = New Size(F2, 17)
RamF2.Text = F3 & " " & F1
'-> Used Ram
Dim U3 = ""
Dim Ram_Used = My.Computer.Info.TotalPhysicalMemory - My.Computer.Info.AvailablePhysicalMemory
If Ram_Used > GB Then
U3 = FormatNumber(Ram_Used / GB, 2) & " GB"
ElseIf Ram_Used < GB Then
U3 = FormatNumber(Ram_Used / MB, 2) & " MB"
End If
'-> Set The Used Percent Size
Dim U1 = FormatPercent(Ram_Used / My.Computer.Info.TotalPhysicalMemory, 2)
Dim U2 = Replace(U1, "%", "")
U2 = U2 * 2.25
RamU3.Size = New Size(U2, 17)
RamU2.Text = U3 & " " & U1
End Sub
End Class
Get_KeyV1.exe (69.5K)
Posted 13 March 2010 - 10:38 PM
This post has been edited by Ozzyguy: 14 March 2010 - 12:06 AM
Posted 14 March 2010 - 11:39 AM
Posted 14 March 2010 - 09:40 PM
gunsmokingman, on 14 March 2010 - 11:39 AM, said:
ProductKey.txt (2.92K)
Posted 15 March 2010 - 12:25 AM
Ozzyguy, on 14 March 2010 - 09:40 PM, said:
Dim strKey, subkey, arrSubkeys2, strOfficeKey, strValue
strKey = "SOFTWARE\Microsoft\Office\14.0\Registration"
ScriptHelper.Registry.EnumKey HKEY_LOCAL_MACHINE, strKey, arrSubkeys2
If IsNull(arrSubkeys2) Then
'Office 2010 not installed, skip it
arrSubKeys(4,1) = ""
Else
For Each subkey In arrSubkeys2
ScriptHelper.Registry.GetBinaryValue HKEY_LOCAL_MACHINE, strKey & "\" & subkey, SEARCH_KEY, strValue
If IsNull(strValue) Then
strOfficeKey = ""
Else
strOfficeKey = strKey & "\" & subkey
arrSubKeys(4,1) = strOfficeKey
End If
Next
End If