At the moment any exe`s I compile I put in a simple routine to read the name of the computer, then use the CRYPT command to write to a text file.
So when the programme runs it checks to see if the line in the text file relates to the computers name , so that the exe can only be run on PC`s I want it too.
But this is open to abuse as anyone can re-name the PC , so can anyone think of a more secure way of only allowing compiled scripts to be run on specific PC`s. I thought about trying to read the Hard Drive serial number?
Security
Moderators: JRL, Dorian (MJT support)
I don't know of a way to read the HD serial number, maybe someone else has a solution. But I can show you how to read the partition serial number.
I hope this was helpful.
Code: Select all
let>RP_DISPLAYERROR=1
Let>RP_WAIT=1
Let>RP_WINDOWMODE=1
Run Program>cmd /c DIR *.ap > %TEMP_DIR%~HDSerial.txt
ReadFile>%TEMP_DIR%~HDSerial.txt,result
DeleteFile>%TEMP_DIR%~HDSerial.txt
MessageModal>result