最小化所有窗口的批处理文件 [英] minimize all windows batch file

查看:1188
本文介绍了最小化所有窗口的批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让我的电脑更自动化的什么我通常做当我第一次打开它。但是,我在与最小化批处理文件的问题。我试图得到它,​​批处理文件将等待5秒钟,然后最小化所有打开的窗口。我想下面的code。

I'm trying to make my computer more automated on what I normally do when I first turn it on. But, I'm having problems with the minimize batch file. I'm trying to get it where the batch file will wait 5 seconds, and then minimize all open windows. I'm trying the following code.

timeout /t 5
nircmd sendkeypress rwin+"d"

谁能告诉我什么,我做错了,应该使用?

Can anyone tell me what I'm doing wrong and should be using?

推荐答案

这语法是正确的。这将极大地帮助你的问题,包括错误消息。由于我的评论固定您的问题,您的错误可能是'的NirCmd'不是recoognized作为内部或外部命令... 来调用从批处理脚本文件,执行一个如下:

That syntax is correct. It would greatly help your question to include error messages. Since my comment fixed your issue, your error was probably 'nircmd' is not recoognized as an internal or external command... To call a file from a batch script, perform one of the following:


  • 包括完整或相对路径文件

  • 确保它在同一目录中的批处理文件

  • 包含文件的在%PATH%变量路径

这篇关于最小化所有窗口的批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆