Xp is very common, has a friendly interface, and has a large number of software. It can be used for various services with simple settings. Sometimes, for simple printer and file sharing, the 2003 server is not upgraded, but xp has a limit of 10 connections, if the number of connections exceeds this, xp will start to work. It cannot be opened in the address bar, and the number of connections exceeds the limit in the running bar.
I have been experimenting for a long time. Two similar methods are found. Absolutely available, please feel free to use.
1. A bat file + VBS file
Bat file started
@
The code is as follows: |
Copy code |
Echo off If "% 1 & Prime; =" h "goto begin Mshta vbscript: createobject ("wscript. shell"). run ("% ~ Nx0 h ", 0) (window. close) & exit : Begin Rem: this is to hide the black window that appears only when the current window is clicked. : Cir Net session/delete/y rem delete current connection Start/wait delay. vbs rem enables the delay script file and runs it according to the time set in it. Goto Cir |
Start VBS file
WScript. sleep 300000 300000 refers to 300000 milliseconds, which can be modified by yourself.
Click it when starting the instance. The Bat file is stored in the memory with the CMD file name. You can see it in the task manager as long as you do not close this
Process until it is shut down.
2. A bat file + windows built-in task plan
The content of the Bat file is net session/delete/y.
The key is that Windows is a task plan. After saving bat, you can make a task plan. The most important step is to take a screenshot below.
This method is characterized by simplicity. After the set time is executed, the window will flash and the CMD will not leave the memory.