- Jun
- 137
- 3
I've created a batch file that has evolved over the years. The beginning part of the batch file's purpose is to look at the command line argument, if supplied, and then take a step based on the value. (It will require reading the header of the batch file to understand what I'm about to discuss further.)
If I invoke the batch file with no arguments, with /i, /mi or /q, the flow works properly, and it does what I want. If I use the /v=3.4.29.1 (or any other version number), which is the part I recently added, it seems to get confused on the 'iff'/'elseiff'/'endiff' sets, and eventually comes to the 'else' on line 79, which should match up with the 'iff' on line 45.
TCC: C:\Utils\ISBuild.btm [79] Unknown command "else"
Any help on figuring out how to track this down? I've hand-drawn the matches and can't find any problems, and I've also run it under the debugger, to no avail. I doubt there is a problem with the user functions and other user batch files called, because I haven't changed them in several years, and I've also used 'call' in front of the batch files for safety. If you need to see the function definitions, I can provide them.
I'm using TCC 16.03.55 x64 Windows 7 [Version 6.1.7601]
Any help provided would be greatly appreciated.
If I invoke the batch file with no arguments, with /i, /mi or /q, the flow works properly, and it does what I want. If I use the /v=3.4.29.1 (or any other version number), which is the part I recently added, it seems to get confused on the 'iff'/'elseiff'/'endiff' sets, and eventually comes to the 'else' on line 79, which should match up with the 'iff' on line 45.
TCC: C:\Utils\ISBuild.btm [79] Unknown command "else"
Any help on figuring out how to track this down? I've hand-drawn the matches and can't find any problems, and I've also run it under the debugger, to no avail. I doubt there is a problem with the user functions and other user batch files called, because I haven't changed them in several years, and I've also used 'call' in front of the batch files for safety. If you need to see the function definitions, I can provide them.
I'm using TCC 16.03.55 x64 Windows 7 [Version 6.1.7601]
Any help provided would be greatly appreciated.