![]() |
€uromeinke, FEJ. and Ghoulish Delight RULE!!! NA abides. |
![]() |
#1 |
I Floop the Pig
|
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.
__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.' -TJ |
![]() |
Submit to Quotes
![]() |
![]() |
#2 |
Senior Member
Join Date: Mar 2006
Posts: 2,483
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
nice.
|
![]() |
Submit to Quotes
![]() |
![]() |
#3 |
I Floop the Pig
|
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.
__________________
'He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me.' -TJ |
![]() |
Submit to Quotes
![]() |
![]() |
#4 |
lost in the fog
|
blah blah blah snowflake
blah blah blah blah Good job GD, whatever it means.
__________________
Be yourself; everyone else is already taken. - Oscar Wilde |
![]() |
Submit to Quotes
![]() |
![]() |
#5 |
...
Join Date: Jan 2005
Posts: 13,244
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I'm happy that you're happy, GD!
![]() |
![]() |
Submit to Quotes
![]() |