This batch script helps run another batch file while capturing its output to a timestamped log file.
- Prompts for the path to a target batch file to run.
- Checks if the target batch file exists.
- Generates a timestamped log file in the same directory as the script.
- Uses
tee.exefrom GnuWin32 CoreUtils to capture and display output simultaneously. - Saves the full output of the target batch file to the log file.
- Allows running multiple debug sessions in sequence.
- Run
DebugLog_Tool.cmd. - Enter the full path to the batch file you want to debug.
- The script will run the target batch file and save the output to a timestamped log file.
- After completion, you can choose to run another debug session or exit.
- Windows with PowerShell or Command Prompt.
tee.exefrom GnuWin32 CoreUtils installed atC:\Program Files (x86)\GnuWin32\bin\tee.exe(or update the path in the script).
- If
tee.exeis not found, the script will prompt to download it. - Log files are saved with the format
DebugLog_YYYYMMDD_HHMMSS.txt.
Please refer to the LICENSE file in the root BatchFile folder for license details.
Created by kerklangsi