Hide Command Window of .BAT file that Executes Another .EXE File

前端 未结 15 2198
猫巷女王i
猫巷女王i 2020-12-02 12:50

This is a batch file in Windows.

Here is my .bat file

@echo off
copy \"C:\\Remoting.config-Training\" \"C:\\Remoting.config\"

\"C:\\ThirdPar         


        
15条回答
  •  感情败类
    2020-12-02 13:25

    Using start works fine, unless you are using a scripting language. Fortunately, there's a way out for Python - just use pythonw.exe instead of python.exe:

    :: Title not needed:
    start pythonw.exe application.py
    

    In case you need quotes, do this:

    :: Title needed
    start "Great Python App" pythonw.exe "C:\Program Files\Vendor\App\application.py"
    

提交回复
热议问题