“Bring to front” for Windows XP command shell

后端 未结 7 1250
误落风尘
误落风尘 2020-12-09 13:20

Is there a command I can put into a Windows XP .bat file to bring the command shell to the front?

7条回答
  •  孤城傲影
    2020-12-09 13:34

    nircmd will do this, though it involves a little scripting.

    nircmd win activate "titleofwindow"
    

    You basically need to know the title of the cmd window you are executing (you can set this via the TITLE command in windows)

    thus:

    TITLE %SOME_UNIQUE_VALE%
    nircmd win activate %SOME_UNIQUE_VALE%
    

    should do the trick.

    Note some malware tools make use of the NirCmd executable (it requires no deployment as is very powerful) this may cause you problems.

提交回复
热议问题