转码过程中的Window cmd

发布于 2024-08-17 13:23:51 字数 386 浏览 2 评论 0原文

我正在尝试从 cmd 进程捕获数据(读取窗口类型命令行中显示的转码进程的最后一行,将比特率数据放入 vb6 形式,并使用此数据构建剩余时间和进度)专家 WQW 向我发送了使用脚本主机对象模型的源代码。通过这一行,我可以捕获最后一行,

With New WshShell
    Set oExec = .Exec("tasklist.exe")
End With

但是会出现一个小窗口类型的命令行,我必须每 10 秒执行一次处理,因为我需要捕获实时比特率,它一直在变化,所以你可以想象屏幕中的屏幕每次窗口....我怎样才能退出这些窗口的屏幕,我尝试放入行,vbminimized但不起作用,我完成了我的高中,这是我的项目,有人帮助我..谢谢大家身体,请原谅我的英语,我来自洛杉矶,这太奇怪了

i'm tryng to capture the data from a cmd process (read the last line of a trascoding process show in a window type comman line, to put the bitrate data into a vb6 form with this data build a remainnig time and the progress) the expert WQW send me a source code using the scripting host object model. with this line i can capture the last line ,

With New WshShell
    Set oExec = .Exec("tasklist.exe")
End With

but appear a little window type command line ,i must to do thix process each 10 second , because i need capture the real bitrate , which change all time, so you can imagine the screen in the window each time.... how can i quit the screen of these window , i try to put in the line ,vbminimized but don't work , i finish my high scholl and this is my project ,somebody help me.. thanks every body , excuse for my english it's freak i'm from L.A

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遗忘曾经 2024-08-24 13:23:51

尝试使用额外的自动关闭 shell 窗口

With New WshShell
    Set oExec = .Exec("%comspec% /C tasklist.exe")
End With

Try using additional self-closing shell window

With New WshShell
    Set oExec = .Exec("%comspec% /C tasklist.exe")
End With
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文