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 14:33
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » The most basic questions are also what novices care about the most View 2,162 Replies 17
Original Poster Posted 2006-11-22 11:06 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
I'm currently very green in this area, and I hope to get guidance from experts.

[ Last edited by dos9527 on 2006-11-23 at 07:47 AM ]
Floor 2 Posted 2006-11-22 11:17 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

Just post your questions directly, and everyone can study them.
Floor 3 Posted 2006-11-22 11:26 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
I want to make a BAT to control the opening of TCP/UDP ports. The command NETSH FIREWALL SET XXXXXXX is impossible for those of us who don't use Microsoft FIREWALL products. Are there any other commands!

[ Last edited by dos9527 on 2006-11-23 at 11:09 AM ]
Floor 4 Posted 2006-11-22 11:38 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline

  I think among the commands built into the system, only this netsh can configure ports alone. You can take a good look at the help document of this command, learn about the usage of the command, which will be very useful for you. If you find this command relatively difficult to master, you can consider third-party tools, such as ipseccmd.exe. However, it is also a command-line tool, and using it may not necessarily be simpler than the netsh command.

  As for not being able to find this find command, please first state what version of your system is. Then consider whether the environment variables are set properly.
Floor 5 Posted 2006-11-22 12:21 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

Third-party tools, such as ipseccmd.exe

This is from Microsoft official, but the system does not come with it, it's in ResKit

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-11-22 12:51 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
In the command "NETSH FIREWALL SET xxxxx", there is a setting to control whether multicast or broadcast response traffic can pass through the FIREWALL. I want to ask if this can control the packet sending of ARP viruses? Thank you everyone for your support! Thanks again! :D

[ Last edited by dos9527 on 2006-11-23 at 11:11 AM ]
Floor 7 Posted 2006-11-23 05:52 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
Floor 8 Posted 2006-11-23 06:47 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline

Also, there is a setting in NETSH FIREWALL SET xxxxx that controls whether multicast or broadcast response traffic can pass through the FIREWALL. I want to ask if this can control the packet sending of ARP viruses? Thank you everyone for your support! Thanks again! :D

This is the firewall function built into XP. It is recommended to configure with IPSec or install ISA

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 9 Posted 2006-11-23 07:05 ·  中国 北京 朝阳区 联通
高级用户
★★
朦胧的世界
Credits 579
Posts 218
Joined 2006-10-24 04:29
19-year member
UID 67972
Status Offline
The most direct way to control ARP viruses is to find the infected computers in the LAN and disinfect them! Controlling multicast or broadcast response traffic will cause many problems in the LAN, after all, ARP, DHCP, etc. all need the support of broadcasting.

认识自己,降伏自己,改变自己
,才能改变别人!
Floor 10 Posted 2006-11-23 07:34 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
Floor 11 Posted 2006-11-23 07:39 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
There is a new problem. Why can't the FIND command run in folders other than %systemboot%\system32? How to set it up? I want to ask everyone if there is a way to make all commands callable in all folders. My system is XP SP2.
Floor 12 Posted 2006-11-23 08:15 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Your path is incorrect. Go to another machine to check set path, then copy one back

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 13 Posted 2006-11-23 08:52 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Is there a missing path information of C:\WINDOWS\system32; in the path?
Because your find.exe defaults to the %systemboot%\system32 directory : )
If the path information does not contain the above path, it cannot be found, very interesting~ : )

How about you copy the find.exe file directly to the %systemboot% directory?
Then nothing needs to be changed, haha... but it can still be used : )
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 14 Posted 2006-11-23 10:45 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
But next time if other commands have such problems, won't we have to copy files all the time? Is there a permanent solution?
Floor 15 Posted 2006-11-23 10:56 ·  中国 广西 南宁 电信
中级用户
★★
Credits 252
Posts 56
Joined 2003-12-29 00:00
22-year member
UID 14605
Gender Male
Status Offline
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\sd\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=68
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\sd
LOGONSERVER=\\68
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 10 Stepping 0, AuthenticAMD
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0a00
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\sd\LOCALS~1\Temp
TMP=C:\DOCUME~1\sd\LOCALS~1\Temp
USERDOMAIN=68
USERNAME=sd
USERPROFILE=C:\Documents and Settings\sd
windir=C:\WINDOWS
Forum Jump: