.bat检查页面是否闪烁是或不是 [英] .bat check if the page has flash yes or not
问题描述
这个想法是创建一个 .bat或.html 文件,当我运行该文件时,它会告诉我url是否具有Flash对象. 如果网页上有 Flash对象,请显示一个回显,如果没有显示另一个回显.
The idea is to create a .bat or .html file that when i run it tells me whether a url has a Flash object or not. If webpage have Flash Object, show me a echo and if don't have show me another echo.
我有这个.bat ...这个东西,似乎要检查页面是打开还是关闭.但是我不知道网页上是否有Flash对象:(可以这样做吗?
I have this .bat ... This thing, seems to check if the page is on or off. But I don't get to check if webpage has a Flash object or not :( This can be done?
@echo off
setlocal
set "URL1=https://www.google.com/"
cscript /nologo /e:jscript "%~f0" %URL1%
if %ErrorLevel% EQU 200 (
echo %URL1% Online
) else (
echo %URL1% Off
)
pause
goto :EOF
JScript */
with(new ActiveXObject("Microsoft.XMLHTTP")){
open("GET",WSH.Arguments(0));send();
while(readyState!=4){WSH.Sleep(50)};
WSH.Quit(status)}
无论发生多长时间,我都会为您提供帮助.如果您知道可以执行此操作的免费程序,对我也有帮助.
I appreciate any help no matter how long it happens. If you know a free program that does this also helps me.
感谢您阅读并获得美好的一天.
Thank for read and get nice day.
推荐答案
尝试使用 winhttpjs.bat (应该在同一目录中):
try with winhttpjs.bat (it should be in the same directory):
::testing site with flash
call winhttpjs.bat http://flash.org/video.php -saveto res.html
find /i "http://www.adobe.com/go/getflashplayer" "res.html" >nul 2>nul && (
echo site has flash
)||(
echo site has NO flash
)
::testing site WITHOUT flash
call winhttpjs.bat https://www.google.bg -saveto res.html
find /i "http://www.adobe.com/go/getflashplayer" "res.html" >nul 2>nul && (
echo site has flash
)||(
echo site has NO flash
)
这篇关于.bat检查页面是否闪烁是或不是的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!