A baffling problem: The following line runs PERFECTLY in an NSIS script:
nsExec::Exec '"$varCOMSPEC" /C assoc .bat=batfile'
But when adding redirection, it actually ruins the association:
nsExec::Exec '"$varCOMSPEC" /C assoc .bat=batfile > nsExecTest.log'
Any idea why?
Please note that I am not asking about the 'assoc' internal Windows command (I also know about the alternative File Association
plugin). I am merely trying to understand why the behavioral change of nsExec::Exec
when adding redirection
to a log file.