- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Now, where were we? Oh yeah, the important thing was I had an onion on my belt, which was the style at the time...
Admin
I'm disturbed that everybody is discussing the lack of a loop, as if the end result is otherwise acceptable...
Are those zip files of the source code...? :-/ Allow me to introduce you to source control:
http://git-scm.com/ http://mercurial.selenic.com/ http://subversion.apache.org/
Textual data could be managed just the same.
If it's binary data then zip files still seems a bit sketchy... It should probably be put into a database and backed up using the DBMS...
Microsoft shops are generally oblivious though...
Admin
Maybe a 2/10. Too obvious, IMO.
Admin
Admin
There... is so much wrong with this comment. SO MUCH. Please learn to qualify your references a bit better. Put like this you sound awfully ignorant. Of course, it doesn't help that MS created a product with a name that sounds like a standard thing, if you don't call it 'Microsoft SQL Server'.
Admin
Wouldn't you think that the subject should have been "Hopeless"?
Admin
U R the real joke here only.
Admin
We need them, so we hire the ones that look good on paper.
Then we fire them when we realise how crap they are
And the rest of the team then has to fix up the crap left behind....
Admin
Dear all, a loop is hardly a solution here.
Loops go from 1 up to some specific number, and here you need to go down from 70. With a loop, you'd just end up with multiple copies of the same file, which would be stupid.
Thus, the original coder was a wise person, sidestepping this trap. Also, loops are generally evil with unpredictable side effects, just like this one.
Admin
My thought exactly. Obviously I got here much to late to say it frist.
Admin
Some people are just not lazy enough.
Admin
Judging by the use of DOS 'IF NOT EXIST' statements, I'd actually surmise that this originally was a DOS batch file that was converted (possibly automatically) to VB at some point, presumably because somebody said "we can't have a batch file to do such a critically important task"...