China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-09 02:24
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Who can use a batch file to automatically disable and enable the local connection View 655 Replies 0
Original Poster Posted 2008-06-19 21:42 ·  中国 湖北 武汉 教育网
新手上路
Credits 8
Posts 2
Joined 2008-06-19 21:14
18-year member
UID 120606
Gender Male
Status Offline
Who can use a batch file to automatically disable and enable the local connection

For example, I want to stop the system's network access just by running a DOS command, so I can keep myself off the Internet; and during free time I also hope to turn the network back on again through a batch command. I want all of this to be done through DOS commands, without clicking the mouse. Can this be done?

The requirement is under XP pro SP2, preferably without using external tools, and simply using commands provided by the system!
Hope everyone can share workable code
Forum Jump: