至于控制上网时间,需要把那个关机/注销的代码改成下面断网的代码:
ProcessStartInfo pInfo = new ProcessStartInfo();
pInfo.FileName = @"C:\WINDOWS\System32\ipconfig.exe";
pInfo.Arguments = "/release";
Process p = Process.Start(pInfo);
p.WaitForExit();
可以测试看看...
至于控制上网时间,需要把那个关机/注销的代码改成下面断网的代码:
ProcessStartInfo pInfo = new ProcessStartInfo();
pInfo.FileName = @"C:\WINDOWS\System32\ipconfig.exe";
pInfo.Arguments = "/release";
Process p = Process.Start(pInfo);
p.WaitForExit();
可以测试看看...
WENXUECITY.COM does not represent or guarantee the truthfulness, accuracy, or reliability of any of communications posted by other users.
Copyright ©1998-2025 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy