rehanqadri
Programmer
HOW CAN I FIND HARD DISK SERIAL NO. WHILE IN MY FOXPRO PROGRAMMING ENVIRONMENT.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Function ReadSerial()
Private Serial,nHandle
Run VOL > SER.TXT
= INKEY(0.001) && stall - give it time to close
nHandle = Fopen("SER.TXT")
If Ferror() != 0
? Ferror()
= Inkey(0)
RETURN -1
Endif
= Fseek(nHandle,-11,2)
Serial = FREAD(nHandle,9)
= Fclose(nHandle)
ERASE "SER.TXT"
Return(Serial)