Bastien ROUCARIES wrote: > Or cmd /v:on but it will work only with xp and latter > > ok we should use delayed expansion but we should in this case escape ! > > try cmd /v /c printf "%s\n" foo!CR!bar' | od -t x1
Delayed expansion is not enabled by default, AFAICS. And system() and popen() don't pass the /v option to cmd.exe. Therefore your suggestion is not usable in our context. Bruno
