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
@set @nul=1 /*
@echo off
cscript //E:JSCRIPT //Nologo "%~dpnx0" %* 2>>"%~dpnx0.log"
goto:eos
*/
WScript.Echo(new Date());
/*
:eos
if "%...@nul:~0,1%"=="1" (
type "%~dpnx0.log"
pause
)
set @nul=
del "%~dpnx0.log"
goto:eof
*/
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
On Sun, Jul 26, 2009 at 9:44 PM, DBJDBJ <[email protected]> wrote:
>
> Need to work with jQuery in Windows ? This might come usefull :
>
>
> http://blogs.msdn.com/joshpoley/archive/2008/01/15/running-jscript-in-a-cmd-file.aspx
>
> --DBJ
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---