PDA

View Full Version : Geek bragging


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.

DreadPirateRoberts
04-20-2010, 03:34 PM
nice.

Ghoulish Delight
04-20-2010, 03:51 PM
Hmm, I take it back. In going through and cleaning up comments, I realize that it isn't truly recursive. The script does call itself, but it calls a self-contained chunk of the code that runs discretely with each call, no real recursion. Still a nifty bit of control flow work if I do say so myself.

Snowflake
04-20-2010, 04:02 PM
blah blah blah snowflake
blah blah blah blah

Good job GD, whatever it means.

Gemini Cricket
04-20-2010, 05:12 PM
I'm happy that you're happy, GD!
:)