[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
回复 2# idwma

handle下载页面
https://docs.microsoft.com/zh-cn/sysinternals/downloads/handle

我试了一下, 报错
---------------------------------
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Administrator>powershell "$a='C:\Users\Administrator\Desktop\handle.exe'; (&$a) -match '\D*(\d+)\D*(\d+).*'; &$
a -p $matches[1] -c $matches[2] -y"
Nthandle v4.22 - Handle viewer
Copyright (C) 1997-2019 Mark Russinovich
You can recover from sysinternals and its suppliers only direct damages up to U.S.$5.00.You cannot recover any other dam
ages, including consequential, lost profits, special, indirect or incidental damages.
                   LIMITATION DES DOMMAGES - INTéRêTS ET EXCLUSION DE RESPONSABILITé POUR LES DOMMAGES.Vous pouvez obten
ir de Sysinternals et de ses fournisseurs une indemnisation en cas de dommages directs uniquement à hauteur de 5, 00 $ U
S.Vous ne pouvez prétendre à aucune indemnisation pour les autres dommages, y compris les dommages spéciaux, indirects o
u accessoires et pertes de bénéfices.
Cannot index into a null array.
At line:1 char:84
+ ... $a) -match '\D*(\d+)\D*(\d+).*'; &$a -p $matches[1] -c $matches[2] -y
+                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: ( [], RuntimeException
    + FullyQualifiedErrorId : NullArray

TOP

本帖最后由 5i365 于 2022-1-3 06:56 编辑

回复 2# idwma


不知道这个具体是干什么的, 看看了官方说明,

我想知道这个工具,可以关闭软件吗? 例如,我想关闭正在打开的 酷狗音乐 , 我需要的不是杀死它, 而是正常退出程序,

或者有什么别的工具, 可以实现正常关闭软件的功能吗?

找一个关于用句柄关闭程序的文章:
https://bbs.csdn.net/topics/310223983

还有一篇, 但不是关闭窗口,是关闭显示器
https://www.pstips.net/how-to-sw ... ith-powershell.html

TOP

返回列表