回复 3# czjt1234
找不到之前写的脚本了,时间太久远忘记扔哪了!,,临时编写一个作数,,,脚本还有优化空间,,,,不过我懒,,
- @Echo Off
- Set 进程=browser.exe
- For /f "tokens=2 delims= " %%a in (' tasklist ^| find "%进程%" ') do ( For /f "tokens=1,2,3,4,5 delims= " %%A in ( 'netstat -o ^| find "%%a"' ) do (Call,Set "命令PID=%%命令PID%%,%%a" & echo.%进程% %%B %%C %%a ))
- For /f "delims=," %%i in ("%命令PID%") do Wmic Process where name="%进程%" GET CommandLine,Handle | find "%%i"
- Pause
复制代码 --------------------------------获得----------------------
browser.exe 192.168.2.40:2924 14.22.9.124:10012 10012
browser.exe 127.0.0.1:3176 flash:2903 3176
"G:\游戏插件\WeGame\QBBlinkTrial\browser.exe" -host=tab -scope=6188 -cred=2752 -group=130005 --groupid=130005 --no-sandbox --watch-plugins --disable-direct-write --user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.5414.120 Safari/537.36 qblink wegame.exe WeGame/6.0.4.7091 ChannelId/1" --enable-npapi --force-device-scale-factor=1 --autoplay-policy=no-user-gesture-required --renderer-process-limit= --disable-web-security --user-data-dir="G:\游戏插件\WeGame\QBBlinkTrial\user_data" --log-file="G:\游戏插件\WeGame\log\browser_wegame.exe.log" --log-severity=warning --start-fullscreen=0 --enable-sharpp --speedup-pepflash --optimize_winless --client-id=qbclient_tgp --cookie-commit-interval-ms=5000 --qbfeature=27566919 --disable-features=SameSiteByDefaultCookies --disable-accelerated-video-decode --disable-gpu-vsync --enable-fast-unload --enable-gpu-rasterization --enable-zero-copy --disable-background-timers-throttling --autoplay-policy=no-user-gesture-required --disable-features=PreloadMediaEngagementData,MediaEngagementBypassAutoplayPolicies /prefetch:1 10012
----------------------------------
%%B = 本地地址
%%C = 外部地址
%%a = 多线进程PID
%%i = 多线进程连接PID ,没有连接的时候是找不到的,会被默认成单进程多连接。
希望能给你一些启发和灵感,也可以给论坛里的大神们二次优化和开发,,,,, |