查看单个帖子
旧 Jan 29th, 2023, 21:39     #9
HHH
Senior Member
级别:15 | 在线时长:313小时 | 升级还需:7小时级别:15 | 在线时长:313小时 | 升级还需:7小时级别:15 | 在线时长:313小时 | 升级还需:7小时
 
注册日期: Jul 2004
帖子: 505
HHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond reputeHHH has a reputation beyond repute
默认 同样问题, Solution

引用:
作者: changzg 查看帖子
我也是同样的问题
写一个小batch, 先断网,再launch, 再连网。已验证。

sample code here, note: mine is ethernet instead of WiFi.


@echo off

echo Disabling Ethernet...
powershell -Command "Start-Process cmd -Verb runAs -ArgumentList '/c netsh interface set interface \"Ethernet\" admin=disable'"

echo Waiting for Ethernet to be disabled...
timeout /t 5

echo Launching "TurboTax2022"...
start "" "C:\Program Files\TurboTax2022\tt2022.exe"

echo Waiting for "TurboTax2022" to launch...
timeout /t 30

echo Enabling Ethernet...
powershell -Command "Start-Process cmd -Verb runAs -ArgumentList '/c netsh interface set interface \"Ethernet\" admin=enable'"


echo Done!

If I could help you, I would help you.
HHH 当前离线  
回复时引用此帖
共 3 位会员
感谢 HHH 发表的文章:
joy_photo (Feb 26th, 2023), samzhu (Feb 26th, 2023), wts (Feb 13th, 2023)