Herbert Kleebauer recently posted this article on the alt.msdos.batch.nt newsgroup. He demonstrates how to filter out all control characters and extended ASCII characters from an input file using the wondrous certutil.
The possibilities for certutil are endless. It’s my new favourite toy. Here, for example, is how to create a file containing a single null character:
Code: Select all
>nc.hex echo(00
certutil -decodehex nc.hex nullchar.txt
del nc.hex
No need for fsutil and its annoying insistence on being run as administrator.
- SB
PS: Don’t despair, my little XP bunnies. Read this and start downloading.