I am using the...
for /f "tokens=3" %%p in ('reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v ProductID') do set "productID=%%p"
...command to get windows ProductID and save it into a varible. So I can use this method to make a serial key thing for my batch file program.
For example here is a OEM ID: 00426-OEM-8992662-00173. Now I have set up some varibles.
set I1HZ=0 set JG5S=1 set TA0K=2 set H7AV=3 set YJ6S=4 set K4FN=5 set ZV1D=6 set PJ6C=7 set J3HR=8 set D4FD=9 set H1YA=OEM set G8HS=-
and there are the numbers 0-9 in most OEM ID's.
So for every 0 it would convert it into I1HZ string so if my id string was 00456-OEM-7555665-00631 and I had the varible set I1HZ=0 ect and all the other varibles.
It would encrypt the OEM ID String into another string i.e I1HZI1HZYJ6STA0KZV1DG8HSH1YAG8HSJ3HRD4FDD4FDTA0KZV1DZV1DTA0KG8HSI1HZI1HZJG5SPJ6CH7AV
That would be the encrypted serial string key.
There for can I do this to make the serial calucaltion work. Please post some code to help me
Much help would be appreciatet thanks