至於控製上網時間,需要把那個關機/注銷的代碼改成下麵斷網的代碼:
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-2024 wenxuecity.com All rights reserved. Privacy Statement & Terms of Use & User Privacy Protection Policy