Suppress command line output

前端 未结 4 1235
挽巷
挽巷 2020-11-30 19:05

I have a simple batch file like this:

echo off

taskkill /im \"test.exe\" /f > nul

pause

If \"test.exe\" is not running, I get this message:



        
4条回答
  •  感情败类
    2020-11-30 19:40

    mysqldump doesn't work with: >nul 2>&1
    Instead use: 2> nul
    This suppress the stderr message: "Warning: Using a password on the command line interface can be insecure"

提交回复
热议问题