Im writing a batch script to run on a flash drive. I need to validate the volume serial number of flash drive inside the code, therefore nobody should be able to run it from a different location.
Does anyone know how to validate serial number inside a batch file?
Example:
IF %VOL%==ABCD GOTO A ELSE EXIT
Although there are several different ways to achieve the same thing, the original DOS/Windows command intended to manage volumes and serial numbers is
VOL: