写一个批处理 检测IP Helper服务状态 如果未启动 则启动
您可以使用以下批处理脚本来检测并启动IP Helper服务:```batch
@echo off
REM 检测是否正在运行IP Helper服务
sc query "iphlpsvc" | find "RUNNING" > nul
REM 检查错误级别(错误级别0表示服务正在运行)
if %errorlevel% equ 0 (
echo IP Helper服务已经启动
) else (
echo IP Helper服务未启动,正在尝试启动...
net start "iphlpsvc"
REM 检查启动是否成功
sc query "iphlpsvc" | find "RUNNING" > nul
if %errorlevel% equ 0 (
echo IP Helper服务已成功启动
) else (
echo 无法启动IP Helper服务,请检查系统配置
)
)
```
请注意,此脚本需要以管理员权限运行才能成功启动或停止服务。
网络监测程序 2023-12-11 BY wwwylg
@echo off @mode con cols=50 lines=10 @title 网络监测程序 2023-12-11 BY wwwylg setlocal set IP=192.168.0.118 :qq5082500 ping -n 1 %IP% | find "TTL=" > nul if errorlevel 1 ( color 4F echo 第1次判断:网络断开了,跳转到第二次判断。 goto ERROR ) else ( color 9F echo 第1次判断:网络正常,什么也不操作。 timeout /t 5 > nul goto qq5082500 ) :ERROR ping -n 1 %IP% | find "TTL=" > nul if errorlevel 1 ( color 4F echo 第2次判断:网络断开了,什么也不操作。 goto ERROR timeout /t 5 > nul ) else ( color 4F echo %date% %time% 重启播放器。 @taskkill /f /im play_rtsp.dll @cd /d %~dp0 @start C:\ezsoft\play_rtsp.dll -fullscreen --title=VirtualCamera --no-window-dragging "rtsp://admin:kevin309420@192.168.0.118:554/type=0&id=1" @tasklist | find /i "osd.exe"||start C:\ezsoft\lib\osd.exe @ping -n 3 127.0.0.1 >NUL @taskkill /f /im "play_mp4.dll" timeout /t 5 > nul goto qq5082500 ) endlocal cmd/k
解决安防人噩梦:禁止IE浏览器跳转到Edge
Windows Registry Editor Version 5.00;禁用第三方浏览器,启用第三方浏览器是yes,最主要就是当我们打开IE浏览器的时候会自动跳转到EDGE浏览器,如果你找不到设置的地方的话,即将是你恶梦的开始。
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Main]
"Enable Browser Extensions"="no"
以下是批处理文件代码:
rem 禁用第三方浏览器
reg add "HKCU\SOFTWARE\Microsoft\Internet Explorer\Main" /v "Enable Browser Extensions" /t reg_sz /d "no" /f
https://oyeric.lanzout.com/iYKhO0s1nbva
"C:\Program Files\Internet Explorer\iexplore.exe"
bing -Embedding
android录屏推流SDK 录屏推流软件
直播源
https://gitee.com/ykuu/uu/blob/876b738af7f3b70432382bd22f08e0f246a96703/zbyb1.txt可以正常叠加时间OSD,时间不会变化,需继续研究
2023-11-22 乱云飞 评论(0) 浏览(106) 标签: ffmpeg OSD 叠加时间
SET HH=%TIME:~0,2% SET MI=%TIME:~3,2% SET SS=%TIME:~6,2% set rq=%date% %HH%\:%MI%\:%SS% echo rq ffmpeg -t 5 -i 1.mp4 -vf drawtext="fontfile=font.ttf: text='%rq%':\x=200: y=200: fontsize=64: fontcolor=red@1: box=0: boxcolor=#FFFFFF@0.8" -c:v libx264 -an -f mp4 output.mp4 -y cmd/k
非常好用的IP地址修改器,500多KB绿色版
2023-11-22 乱云飞 评论(0) 浏览(101) 标签: IP地址修改器 修改IP地址
批处理每5秒判断网络状态
@echo off setlocal :QQ5082500 ping -n 1 192.168.0.118 | find "TTL=" > nul if errorlevel 1 ( rem ------------------------------------------------------------------- echo 无网络信号! rem ------------------------------------------------------------------- ) else ( rem ------------------------------------------------------------------- echo 网络正常。 rem ------------------------------------------------------------------- ) timeout /t 5 > nul goto QQ5082500 endlocal cmd/k
常见USB设备的VID和PID
{USB_DEVICE (0x0733, 0x0430)}, /* Intel PC Camera Pro */
{USB_DEVICE (0x0733, 0x0401)}, /* Intel Create and Share */
{USB_DEVICE (0x99FA, 0x8988)}, /* Grandtec V.cap */
{USB_DEVICE (0x0733, 0x0402)}, /* ViewQuest M318B */
{USB_DEVICE (0x0733, 0x0110)}, /* ViewQuest VQ110 */
{USB_DEVICE (0x040A, 0x0002)}, /* Kodak DVC-325 */
{USB_DEVICE (0x055f, 0xc420)}, /* Mustek gSmart Mini 2 */
{USB_DEVICE (0x055f, 0xc520)}, /* Mustek gSmart Mini 3 */
{USB_DEVICE (0x041E, 0x400A)}, /* Creative PC-CAM 300 */
{USB_DEVICE (0x084D, 0x0003)}, /* D-Link DSC-350 */
{USB_DEVICE (0x041E, 0x400B)}, /* Creative PC-CAM 600 */
{USB_DEVICE (0x8086, 0x0630)}, /* Intel Pocket PC Camera */
{USB_DEVICE (0x8086, 0x0110)}, /* Intel Easy PC Camera */
{USB_DEVICE (0x0506, 0x00df)}, /* 3Com HomeConnect Lite */
{USB_DEVICE (0x040a, 0x0300)}, /* Kodak EZ200 */
{USB_DEVICE (0x04fc, 0x504b)}, /* Maxell MaxPocket LE 1.3 */
{USB_DEVICE (0x08ca, 0x2008)}, /* Aiptek Mini PenCam 2 M */
{USB_DEVICE (0x08ca, 0x0104)}, /* Aiptek PocketDVII 1.3 */
{USB_DEVICE (0x08ca, 0x2018)}, /* Aiptek Pencam SD 2M */
{USB_DEVICE (0x04fc, 0x504a)}, /* Aiptek Mini PenCam 1.3 */
{USB_DEVICE (0x055f, 0xc530)}, /* Mustek Gsmart LCD 3 */
{USB_DEVICE (0x055f, 0xc650)}, /* Mustek MDC5500Z */
{USB_DEVICE (0x052b, 0x1513)}, /* Megapix V4 */
{USB_DEVICE (0x08ca, 0x0103)}, /* Aiptek PocketDV */
{USB_DEVICE (0x0af9, 0x0010)}, /* Hama USB Sightcam 100 */
{USB_DEVICE (0x1776, 0x501c)}, /* Arowana 300K CMOS Camera */
{USB_DEVICE (0x08ca, 0x0106)}, /* Aiptek Pocket DV3100+ */
{USB_DEVICE (0x08ca, 0x2010)}, /* Aiptek PocketCam 3M */
{USB_DEVICE (0x0458, 0x7004)}, /* Genius VideoCAM Express V2 */
{USB_DEVICE (0x04fc, 0x0561)}, /* Flexcam 100 */
{USB_DEVICE (0x055f, 0xc430)}, /* Mustek Gsmart LCD 2 */
{USB_DEVICE (0x04fc, 0xffff)}, /* Pure DigitalDakota */
{USB_DEVICE (0xabcd, 0xcdee)}, /* Petcam */
{USB_DEVICE (0x04a5, 0x3008)}, /* Benq DC 1500 */
{USB_DEVICE (0x046d, 0x0960)}, /* Logitech Inc. ClickSmart 420 */
{USB_DEVICE (0x046d, 0x0901)}, /* Logitech Inc. ClickSmart 510 */
{USB_DEVICE (0x04a5, 0x3003)}, /* Benq DC 1300 */
{USB_DEVICE (0x0af9, 0x0011)}, /* Hama USB Sightcam 100 */
{USB_DEVICE (0x055f, 0xc440)}, /* Mustek DV 3000 */
{USB_DEVICE (0x041e, 0x4013)}, /* Creative Pccam750 */
{USB_DEVICE (0x060b, 0xa001)}, /* Maxell Compact Pc PM3 */
{USB_DEVICE (0x04a5, 0x300a)}, /* Benq DC3410 */
{USB_DEVICE (0x04a5, 0x300c)}, /* Benq DC1016 */
{USB_DEVICE (0x0461, 0x0815)}, /* Micro Innovation IC200 */
{USB_DEVICE (0x046d, 0x0890)}, /* Logitech QuickCam traveler */
{USB_DEVICE (0x10fd, 0x7e50)}, /* FlyCam Usb 100 */
{USB_DEVICE (0x06e1, 0xa190)}, /* ADS Instant VCD */
{USB_DEVICE (0x055f, 0xc220)}, /* Gsmart Mini */
{USB_DEVICE (0x0733, 0x2211)}, /* Jenoptik jdc 21 LCD */
{USB_DEVICE (0x046d, 0x0900)}, /* Logitech Inc. ClickSmart 310 */
{USB_DEVICE (0x055f, 0xc360)}, /* Mustek DV4000 Mpeg4 */
{USB_DEVICE (0x08ca, 0x2024)}, /* Aiptek DV3500 Mpeg4 */
{USB_DEVICE (0x046d, 0x0905)}, /* Logitech ClickSmart820 */
{USB_DEVICE (0x05da, 0x1018)}, /* Digital Dream Enigma 1.3 */
{USB_DEVICE (0x0c45, 0x6025)}, /* Xcam Shanga */
{USB_DEVICE (0x0733, 0x1311)}, /* Digital Dream Epsilon 1.3 */
{USB_DEVICE (0x041e, 0x401d)}, /* Creative Webcam NX ULTRA */
{USB_DEVICE (0x08ca, 0x2016)}, /* Aiptek PocketCam 2 Mega */
{USB_DEVICE (0x0734, 0x043b)}, /* 3DeMon USB Capture aka */
{USB_DEVICE (0x041E, 0x4018)}, /* Creative Webcam Vista (PD1100) */
{USB_DEVICE (0x0546, 0x3273)}, /* Polaroid PDC2030*/
{USB_DEVICE (0x041e, 0x401f)}, /* Creative Webcam Notebook PD1171*/
{USB_DEVICE (0x041e, 0x4017)}, /* Creative Webcam Mobile PD1090*/
{USB_DEVICE (0x046d, 0x08a2)}, /* Labtec Webcam Pro*/
{USB_DEVICE (0x055f, 0xd003)}, /* Mustek WCam300A*/
{USB_DEVICE (0x0458, 0x7007)}, /* Genius VideoCam V2*/
{USB_DEVICE (0x0458, 0x700c)}, /* Genius VideoCam V3*/
{USB_DEVICE (0x0458, 0x700f)}, /* Genius VideoCam Web V2*/
{USB_DEVICE (0x041e, 0x401e)}, /* Creative Nx Pro*/
{USB_DEVICE (0x0c45, 0x6029)}, /* spcaCam@150 */
{USB_DEVICE (0x0c45, 0x6009)}, /* spcaCam@120 */
{USB_DEVICE (0x0c45, 0x600d)}, /* spcaCam@120 */
{USB_DEVICE (0x04fc, 0x5330)}, /* Digitrex 2110*/
{USB_DEVICE (0x055f, 0xc540)}, /* Gsmart D30*/
{USB_DEVICE (0x0ac8, 0x301b)}, /* Asam Vimicro*/
{USB_DEVICE (0x041e, 0x403a)}, /* Creative Nx Pro 2*/
{USB_DEVICE (0x055f, 0xc211)}, /* Kowa Bs888e Microcamera*/
{USB_DEVICE (0x0ac8, 0x0302)}, /* Z-star Vimicro zc0302*/
{USB_DEVICE (0x0572, 0x0041)}, /* Creative Notebook cx11646*/
{USB_DEVICE (0x08ca, 0x2022)}, /* Aiptek Slim 3200*/
{USB_DEVICE (0x046d, 0x0921)}, /* Labtec Webcam */
{USB_DEVICE (0x046d, 0x0920)}, /* QC Express */
{USB_DEVICE (0x0923, 0x010f)}, /* ICM532 cams */
{USB_DEVICE (0x055f, 0xc200)}, /* Mustek Gsmart 300 */
{USB_DEVICE (0x0733, 0x2221)}, /* Mercury Digital Pro 3.1p*/
{USB_DEVICE (0x041e, 0x4036)}, /* Creative Live ! */
{USB_DEVICE (0x055f, 0xc005)}, /* Mustek Wcam300A */
{USB_DEVICE (0x041E, 0x403b)}, /* Creative Webcam Vista (VF0010) */
{USB_DEVICE (0x0545, 0x8333)}, /* Veo Stingray */
{USB_DEVICE (0x0545, 0x808b)}, /* Veo Stingray */
{USB_DEVICE (0x10fd, 0x8050)}, /* Typhoon Webshot II USB 300k */
{USB_DEVICE (0x0000, 0x0000)}, /* MystFromOri Unknow Camera */