Open the new text file and paste the following clean, safe batch code:

wmic diskdrive get serialnumber : Displays your storage drive IDs.

Independent developers often use a hwid checker.bat to generate a license key file. The user runs the script and sends the HWID to the developer, who then generates a unique activation code bound to that machine.