The mysterious case of the swallowed script call

Just had this “mysterious” case of DDKBUILD not properly working. I could swear everything worked fine before, but the unconscious creation of a script named build.cmd would take precedence over the build utility from the DDK. Now batch and NT scripts have this peculiar feature that scripts called from within scripts without using the call command will actually swallow the rest of the “parent” script, because the child script will never return. Anyway, mystery solved.

Hint: never put a file named foo.cmd into your local folder if you’re going to execute a script which relies on foo (e.g. as foo.exe) from within that folder.

// Oliver

This entry was posted in DDKWizard/DDKBUILD, EN, Programming. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.