Ghoulish Delight
04-20-2010, 03:19 PM
I just dusted off an old Windows batch script for some network testing. I'm damned proud of this thing.
WARNING - geektastic detail ahead, will only be of interest to...well, probably no one but me.
Here are the triumphs of this script:
1. It calls itself recursively
2. Each recursive call launches its own process and cmd instance
3. using log files I track data across cmd instances
4. I implemented a spin lock to control log file access
Yeah, I said batch. Bitches.
WARNING - geektastic detail ahead, will only be of interest to...well, probably no one but me.
Here are the triumphs of this script:
1. It calls itself recursively
2. Each recursive call launches its own process and cmd instance
3. using log files I track data across cmd instances
4. I implemented a spin lock to control log file access
Yeah, I said batch. Bitches.