Is it possible to install the cmd.exe shell / batch file to print what will be executed, but will not actually execute it?
For example, given a batch file that takes some arguments, some other batch files are selected based on these arguments to run, these batch files execute some commands, or may not call other files / commands, etc.
I would like to be able to run a top-level batch file with all possible combinations of its input arguments and capture what each arg combination will do - without actually trying to execute it.
eg. I would like to be able to conceptually create something like:
mybatchfile.bat 1 2 3 > mybatchfile_1_2_3.bat mybatchfile.bat 99 3 42 > mybatchfile_99_3_42.bat
where mybatchfile_99_3_42.bat is a list of everything that should be done when running mybatchfile.bat 99 3 42 (NOT the output from executing these commands)
If this cannot be done only with cmd.exe, you can somehow achieve this by running the script package in the cygwin bash shell
source share