Monday, December 15, 2008

When is a Comment not a Comment

Ouch!

I've seen some really odd things in my day, but this one takes the cake. A comment with a side-effect!

Its my *FAVORITE* language DOS command language. Error statuses are stored in ERRORLEVEL variable, and that gets returned to the caller.

Problem is, a REM resets ERRORLEVEL back to zero if it is non zero. I guess its telling me the comment was successful?

Happy coding,

The Schmitzer

No comments: