最小化所有窗口

时间:2016-03-29 10:04:29

标签: batch-file

我可以让实际的批处理窗口最小化但不是iexplore窗口,我

@echo off
cls
echo.
echo http://www.suffolkweather.info/flatline-check.php
start/min cmd /c "C:\Program Files\Internet Explorer\iexplore.exe" http://www.suffolkweather.info/flatline-check.php

ping 127.0.0.1 -n 4 -l 0
taskkill /f /im iexplore.exe /t

1 个答案:

答案 0 :(得分:0)

试试这批:

@echo off
cls
echo.
echo "http://www.suffolkweather.info/flatline-check.php"
start "" /min "C:\Program Files\Internet Explorer\iexplore.exe" "http://www.suffolkweather.info/flatline-check.php"
Call :ShellMinimizeAll vbsfile.vbs
pause
Exit /b
:ShellMinimizeAll
(
echo ShellMinimizeAll
echo Function ShellMinimizeAll
echo    dim objShell
echo    set objShell = CreateObject("shell.application"^)
echo    objShell.MinimizeAll
echo    set objShell = nothing
echo End function
)>%1
cscript /nologo %1
Del %1
Exit /b