Lounge of Tomorrow

Lounge of Tomorrow (http://74.208.121.111/LoT/index.php)
-   Egg Head (http://74.208.121.111/LoT/forumdisplay.php?f=13)
-   -   Geek bragging (http://74.208.121.111/LoT/showthread.php?t=10468)

Ghoulish Delight 04-20-2010 03:19 PM

Geek bragging
 
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!
:)


All times are GMT -7. The time now is 08:02 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.