Hi all,
I am very new in AMS.
I have created a project but i want to bind it in my pendrive.So,I have decided to use script below. But, I have no idea how to get the serial number from my pendrive.Anyone can help me?Thanks in advance
Script
-- Set this value to the expected serial number of the
-- drive that your application will run from.
Expected_Serial = 123456789;
-- Gets the source drive's current serial number
Current_Serial = Drive.GetInformation(_SourceDrive).SerialNumber;
-- Compares the two serials and, if different, terminates the app.
if (Current_Serial ~= Expected_Serial) then
Dialog.Message("ERROR", "This is an unauthorized copy of the original application, and will shut down.", MB_OK, MB_ICONSTOP);
Application.Exit();
end


Reply With Quote
