sc qc beep.
To permanently enable the system beep service, run the command
sc config beep start= auto in a Command window with
Administrator rights, and then reboot your system.
-- C scale
note.1 = 262 -- Do, middle C
note.2 = 294 -- Re, D
note.3 = 330 -- Mi, E
note.4 = 349 -- Fa, F
note.5 = 392 -- Sol, G
note.6 = 440 -- La, A
note.7 = 494 -- Si, B, H
note.8 = 523 -- Do, C
do i = 1 to 8
call beep note.i, 250 -- hold each note for 1/4 second
end