如何检查Windows中的vbs脚本是否正在运行?
发布时间:2020-12-14 02:28:26 所属栏目:Windows 来源:网络整理
导读:我在 Windows中创建了一个VBS脚本.我将运行此脚本来获取文件的大小. 我让它永远奔跑. (即使这是我的要求). 我怎么知道它是在运行还是停止? ------ Exact Script starts here ----- Set FSO = CreateObject("Scripting.FileSystemObject") Set FSO_check=Cre
我在
Windows中创建了一个VBS脚本.我将运行此脚本来获取文件的大小.
我让它永远奔跑. (即使这是我的要求). 我怎么知道它是在运行还是停止? ------ Exact Script starts here ----- Set FSO = CreateObject("Scripting.FileSystemObject") Set FSO_check=CreateObject("Scripting.FileSystemObject") do while infiniteLoop=0 ----- This code is lasting for ever ---- Loop 我的问题清楚了吗? 解决方法
如何使用命令行属性?我认为这需要Windows XP及以上版本.
例如: Set objSWbemServices = GetObject ("WinMgmts:RootCimv2") Set colProcess = objSWbemServices.ExecQuery _ ("Select * From Win32_Process where name = 'wscript.exe'") For Each objProcess In colProcess WScript.Echo objProcess.Name,_ objProcess.ProcessId,_ objProcess.CommandLine Next (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Windows – Qt MinGW另一个未定义的引用“WinMain @ 16”问
- 连接到Windows中的命名管道,不同的用户帐户
- windows – PCI合规性:使用SSL作为RDP的传输层(终端服务)
- windows-server-2008 – 2008 Server R2经典视图控制面板?
- windows – 为什么模拟会话中定义的DOS设备不会出现在资源管
- Windows:文件监控脚本(批处理/ VBS)
- windows-server-2008-r2 – 会影响复制速度的服务器操作系统
- IIS初始化(预加载),解决第一次访问慢,程序池被回收问题
- windows-server-2003 – 您对Google Apps专业版的体验是什么
- windows-server-2003 – PHP MYSQL站点性能
推荐文章
站长推荐
- 有没有API可以在Windows上预先检索受信任的根证书
- Windows Phone 8.1中ListView中行的交替颜色
- .net – Metro应用程序 – ListView – 如何替换
- windows-server-2008 – 在Outlook中几分钟后自动
- 安装 – Wix返回错误“在模块中找不到CA或UI入口
- 如何在Windows上的“监视输出文件”模式(tsc -w)
- windows – 读取Internet Explorer保护模式注册表
- .net – 为什么System.Environment.MachineName值
- 安装 – WiX:安装服务为LocalService
- windows – 没有QApplication或QCoreApplication
热点阅读