I'd like my java program to make a Windows machine beep when the program is run. Typing ^G
(Control-G) in the command prompt causes a beep sound.
Is there a way to use Runtime
's exec()
to pass a control character to the command prompt?
e.g. runtime.exec(CONTROL_G); // hmm