OSDN Git Service

b76d3625ced17b4e6f8396bcabdfcafb6109f792
[vbslib/main.git] / samples / debug_wscript.bat
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
4 \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
8  \r