(view source code of prodid.kix as plain text)
: ProdID.kix, Version 1.00 for Windows NT 4 / 2000 / XP
: Display Windows' Product ID
;
: Usage: KIX32 PRODID.KIX
;
: Written by Rob van der Woude
: http://www.robvanderwoude.com
; Read value from registry
$ProductID = ReadValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion","ProductId")
; Display result or error message
If @ERROR = 0
? "ProductID=$ProductID"
Else
? "Error reading product ID"
Endif
?
; Done
Exit @ERROR
page last modified: 2024-04-16; loaded in 0.0099 seconds