Windows xp shared file and printer connections limit solution

Source: Internet
Author: User
Tags goto set time

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.