|From here: http://www.robvanderwoude.com/newsa...|
July 26, 2011 • I guess I wasn't the only one who once dismissed FORFILES.EXE as an obsolete mimic of NT's internal FOR command.
Rob Van Etta had a closer look and found out it can do more, like output "special" characters using their hexadecimal ASCII value.
FORFILES /P %~dps0 /M %~nxs0 /C "CMD /C ECHO 0x07"
will make the speaker emit a beep (ASCII character 7).
Of course there are other ways to do this, this is just a simple example.
I used this trick to improve my own Chr.bat: it now accepts decimal values from 32..126 as well as hexadecimal values.