X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=samples%2Fdebug_wscript.bat;fp=samples%2Fdebug_wscript.bat;h=b76d3625ced17b4e6f8396bcabdfcafb6109f792;hb=8cd319a3714156b275c5e3809401dfccfa472e29;hp=0000000000000000000000000000000000000000;hpb=96594a1f7f4a7fcb1ef2b3641e65c63a0a98635c;p=vbslib%2Fmain.git diff --git a/samples/debug_wscript.bat b/samples/debug_wscript.bat new file mode 100644 index 0000000..b76d362 --- /dev/null +++ b/samples/debug_wscript.bat @@ -0,0 +1,8 @@ +REM === Attach to Just In Time debugger +REM Double click this .bat then one .vbs will be debugged. +REM Drag and drop .vbs file to this .bat then that .vbs will be debugged. + +for %%i in (*.vbs) do set debug_script_path=%%i +if not "%~1"=="" for %%i in ("%~1") do cd "%%~di%%~pi" & set debug_script_path=%%~ni%%~xi +start "" wscript //x "%debug_script_path%" +