Running a CMD or BAT in silent mode

前端 未结 11 1130
夕颜
夕颜 2020-11-28 03:51

How can I run a CMD or .bat file in silent mode? I\'m looking to prevent the CMD interface from being shown to the user.

11条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 04:17

    I'm created RunApp to do such a job and also using it in my production env, hope it's helps.

    The config like below:

    file: config.arg

    :style:hidden
    
    MyBatchFile.bat
    arg1
    arg2
    

    And launch runapp.exe instead.

提交回复
热议问题