Would be nice to be able to leave a comment in that blog ...
I think the technique is not bad but it could be easily improved: example
<span style="font-family: courier new,monospace;">@set @nul=1 /*</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">@echo off</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cscript //E:JSCRIPT //Nologo "%~dpnx0" %* 2>>"%~dpnx0.log"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">goto:eos</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">*/
<br style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">WScript.Echo(new Date());</span>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/*</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">:eos</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> if "%@nul:~0,1%"=="1" (</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> type "%~dpnx0.log"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> pause</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> set @nul=</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> del "%~dpnx0.log"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> goto:eof</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">*/</span>
in this way if var is 1 rather than 0 error are displayed at the end, otherwise no errors are displayed so it could be a debug mode without effort