ListFunctions.bat This list all "functions" in a .bat file
Posted: 25 Mar 2024 03:47
Usage ListFunctions.bat batchfile.bat
Will list all functions found in that batch file, minus a pre-defined list of exclusions
Example
The exclusion are one of the following words, when the function name is tokenized, in the last position
As well as any function that starts with "EndOf_"
main setup end loop loop2 loop3 loop4 skip skip1 skip2 skip2 skip3 skip4 test test1 test2 test3 cleanup argument params args next prev iteration pre post 0 1 2 3 4 5 6 7 8 9 subloop matchfound nomatch found index list arguments preamble test4 test5 test6 start reset
You can specify a different set by adding it as a string when calling "Call :IsFunctionLabelExcluded"
Will list all functions found in that batch file, minus a pre-defined list of exclusions
Example
The exclusion are one of the following words, when the function name is tokenized, in the last position
As well as any function that starts with "EndOf_"
main setup end loop loop2 loop3 loop4 skip skip1 skip2 skip2 skip3 skip4 test test1 test2 test3 cleanup argument params args next prev iteration pre post 0 1 2 3 4 5 6 7 8 9 subloop matchfound nomatch found index list arguments preamble test4 test5 test6 start reset
You can specify a different set by adding it as a string when calling "Call :IsFunctionLabelExcluded"