1 REM === Attach to Just In Time debugger
\r
2 REM Double click this .bat then one .vbs will be debugged.
\r
3 REM Drag and drop .vbs file to this .bat then that .vbs will be debugged.
\r
5 for %%i in (*.vbs) do set debug_script_path=%%i
\r
6 if not "%~1"=="" for %%i in ("%~1") do cd "%%~di%%~pi" & set debug_script_path=%%~ni%%~xi
\r
7 start "" wscript //x "%debug_script_path%"
\r