taskkill窗口空间的标题名称

taskkill窗口空间的标题名称

本文介绍了taskkill窗口空间的标题名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在控制台窗口上运行taskkill,在其标题中有空格。
如何将此窗口标题传递给taskkill。
我试过下面的:

  taskkill / fiWINDOWTITLE eq管理员:我的窗口标题

我已经有类似的问题,但发现了一点点。



问题



我一直在试图关闭一个CMD窗口窗口标题。所以,以管理员身份运行CMD并输入:

  title CMD with custom title 

下面的命令告诉我设置窗口标题在标题前面放置一个领先的空间! (不知道为什么。)

  c:\> tasklist / V / FIWindowTitle eq Administrator *

映像名称PID会话名称会话#Mem使用状态用户名CPU时间窗口标题
=========================== ======== ================= === ============ ====================================== ============ ============================================================================================= ========================================
cmd.exe 4304控制台1 2,492 K运行MY-MACHINE \My名称0:00:00管理员:CMD与自定义标题

I'm trying to run taskkill on a console window that has spaces in it's title. How can I pass this window title to taskkill. I have tried the following:

taskkill /fi "WINDOWTITLE eq Administrator: My Window Title"
解决方案

I've had similar problems, but found out a little bit more.

Problem

I have been trying to close a CMD window (run as administrator) which has set its own window title. So, run CMD as administrator and type:

title CMD with custom title

After much faffing, the following command showed me that setting the window title puts a leading space in front of the title! (No idea why.)

c:\>tasklist /V /FI "WindowTitle eq Administrator*"Image Name                     PID Session Name        Session#    Mem Usage Status          User Name                                              CPU Time Window Title========================= ======== ================ =========== ============ =============== ================================================== ============ ========================================================================cmd.exe                       4304 Console                    1      2,492 K Running         MY-MACHINE\My Name                                      0:00:00 Administrator:  CMD with custom title                        

这篇关于taskkill窗口空间的标题名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 02:43