How do I minimize the command prompt from my bat file

前端 未结 12 801
攒了一身酷
攒了一身酷 2020-12-02 14:15

I have this bat file and I want to minimize the cmd window when I run it:

@echo off
cd /d C:\\leads\\ssh 
call C:\\Ruby192\\bin\\setrbvars.bat
ruby C:\\leads         


        
12条回答
  •  独厮守ぢ
    2020-12-02 14:39

    One way to 'minimise' the cmd window is to reduce the size of the console using something like...

    echo DO NOT CLOSE THIS WINDOW
    MODE CON COLS=30 LINES=2
    

    You can reduce the COLS to about 18 and the LINES to 1 if you wish. The advantage is that it works under WinPE, 32-bit or 64-bit, and does not require any 3rd party utility.

提交回复
热议问题