Hi
Yes, it is possible to treat binary files using Perl. The keyword is binmode[1].
exe and com-files (scr-files (also starts with MZ)) have the assembly code in
hexadezimal representation (or whatever you want to call it). But bat-files
are of completely different type - it is a scripting language, which has to be
interpreted. I suggest you to stick with the "applications", rather than "scripts".
Cheers.
[1] http://www.geocities.com/herong_yang/perl/binary.html