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-02 20:20
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to write such a batch script to close ports? View 1,889 Replies 5
Original Poster Posted 2006-12-19 00:50 ·  中国 安徽 安庆 电信
初级用户
Credits 20
Posts 7
Joined 2006-10-22 00:48
19-year member
UID 67601
Gender Male
Status Offline
My office computer has a lot of personal things and important unit file data installed. There are often people surfing the Internet, and it often gets viruses. I don't want it to surf the Internet, and I want to close all external ports so that it can't go online. How to write such a batch processing? Thank you, great experts!!!!!
Floor 2 Posted 2006-12-19 03:44 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Just break the network cable port, heh heh~ just kidding, I remember there seems to be a setting in the network card properties to limit the port
Floor 3 Posted 2006-12-19 03:48 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
I'm恐怕 not be able to do that well?
May I ask if you are using a router in a local area network? If so, you can't access the Internet if you set wrong IP, gateway, etc. with batch processing. You need to change it back when you need to go online.
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 4 Posted 2006-12-19 04:33 ·  中国 江苏 苏州 联通
银牌会员
★★★
Credits 1,181
Posts 533
Joined 2006-08-14 12:54
19-year member
UID 60484
Status Offline
Set a wrong proxy? This method is relatively simple, but it only works for most people who are not familiar with computers.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
redtek +5 2006-12-19 04:51
Floor 5 Posted 2006-12-19 07:34 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Pull the network cable ~~~ Remove the network card ~~~

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 6 Posted 2006-12-20 01:09 ·  中国 上海 嘉定区 电信
新手上路
Credits 4
Posts 2
Joined 2006-12-18 22:36
19-year member
UID 73882
Gender Male
Status Offline
Management tools, Local Security Policy, just add one
Forum Jump: