OSDN Git Service

Version 3.00
[vbslib/main.git] / samples / debug_wscript.bat
diff --git a/samples/debug_wscript.bat b/samples/debug_wscript.bat
new file mode 100644 (file)
index 0000000..b76d362
--- /dev/null
@@ -0,0 +1,8 @@
+REM === Attach to Just In Time debugger\r
+REM   Double click this .bat then one .vbs will be debugged.\r
+REM   Drag and drop .vbs file to this .bat then that .vbs will be debugged.\r
+\r
+for %%i in (*.vbs) do set debug_script_path=%%i\r
+if not "%~1"=="" for %%i in ("%~1") do cd "%%~di%%~pi" & set debug_script_path=%%~ni%%~xi\r
+start "" wscript //x "%debug_script_path%"\r
\r