How can I run a windows batch file but hide the command window?

前端 未结 10 1873
情深已故
情深已故 2020-11-30 01:40

How can I run a windows batch file but hiding the command window? I dont want cmd.exe to be visible on screen when the file is being executed. Is this possible?

10条回答
  •  无人及你
    2020-11-30 02:26

    You could write a windows service that does nothing but execute your batch file. Since services run in their own desktop session, the command window won't be visible by the user.

提交回复
热议问题