consider bla.bat: > htmlmin -o deploy.html index.html > echo here if you run bla.bat from the command line, 'here' is not displayed