随笔 - 49  文章 - 0 评论 - 19 
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

Web Site Traffic Counter

常用链接

留言簿(3)

随笔分类(48)

随笔档案(49)

搜索

  •  

积分与排名

  • 积分 - 60991
  • 排名 - 99

最新评论

阅读排行榜

评论排行榜

最近突然想写个工具集合,包含了IP的设置,查了资料自己写了个IP格式判断的
Func PDGS($value)
        $IP=StringSplit($value,".")
        If $IP[0]=4 Then         
                For $i=1 to 4
                        $csz=$IP[$i]
                        $bdz="^\d{1,3}$"
                        $aReturn = StringRegExp($csz,$bdz, 3)
                        If Not IsArray($aReturn) Then
                                MsgBox(64,"警告",$value & " 中的 " & $csz & " 不是有效IP地址范围!")
                                Return False                                                       
                        Else
                                If $csz > 255 Then                                       
                                        MsgBox(64,"警告",$value & " 中的 " & $csz & " IP数值超出!")
                                        Return False                                               
                                EndIf
                        EndIf ;====>Not IsArray
                Next
                Return True
        Else
                MsgBox(64,"警告",$value & " IP地址格式错误!")       
                Return False
        EndIf
EndFunc
posted @ 2007-12-15 11:15 疾风随影 阅读(872) | 评论 (0)编辑 收藏
     摘要: 标题:[整理参考] CMD/DOS下符号的作用参考
作者:lxmxn [at] bbs.cn-dos.net
时间:2007-5-27
邮箱:lxmxn520[at]163.com
说明:1、转帖请注明原帖出处属于中国DOS联盟(www.cn-dos.net/forum);
   2、欢迎大家补充还未说明到的符号;
   3、有任何错误还请不吝指出;
   4、特别感谢 qzwqzw 对此资料提出的补充和建议。
  阅读全文
posted @ 2007-11-13 12:25 疾风随影 阅读(649) | 评论 (0)编辑 收藏
     摘要: $sIP = InputBox("MAC地址获取", "请输入IP地址", @IPAddress1, "", 150, 100, -1, -1)
$MAC = _GetMAC ($sIP)
If $MAC <> "00:00:00:00:00:00" Then
MsgBox (0, "MAC地址", '"' &$sIP& '" 的MAC地址是:'&$MAC)
Else
MsgBox (0, "MAC地址", '无法获取:"' &$sIP& '" 的MAC地址')
EndIf  阅读全文
posted @ 2007-11-01 13:50 疾风随影 阅读(1623) | 评论 (0)编辑 收藏
     摘要: #NOTRAYICON
$g_szVersion = "My Script 1.1"
If WinExists($g_szVersion) Then Exit
AutoItWinSetTitle($g_szVersion)

#include

GUICreate("群PING工具", 198, 76)
GUICtrlCreateGroup("", 12, 0, 129, 69)
$Button1 = GUICtrlCreateButton("开始", 152, 8, 37, 21)
$Button2 = GUICtrlCreateButton("退出", 152, 44, 37, 21)

GUICtrlCreateLabel("IP前缀", 16, 16, 38, 17)
$Input1 = GUICtrlCreateInput("192.168.0", 60, 12, 73, 17)
  阅读全文
posted @ 2007-11-01 13:49 疾风随影 阅读(1181) | 评论 (0)编辑 收藏
将用户加入本地组需要权限
net localgroup "power users" %username% /add
net localgroup "power users" 域名\%username% /add
posted @ 2007-10-29 20:20 疾风随影 阅读(449) | 评论 (0)编辑 收藏

1.删除嵌套3层以内的空目录

for /l %a in (1,1,3) do for /r %i in (.) do rd %~si

2.将指定文件更名为今天日期
for /f "tokens=1" %a in ('date /t') do rename aa.rar %a.rar

3.嵌套显示连接192.168.1段的ip地址成功数
for /f "tokens=3  delims=: " %%a in (' for /l %%i in ^(1,1,255^) do ping 192.168.1.%%i ^|

find /I "Reply" ') do echo 连接ip地址%%a成功!

posted @ 2007-10-26 12:24 疾风随影 阅读(359) | 评论 (0)编辑 收藏
     摘要: 今天同事说了一个问题,要将源压缩文件内容重新加密成压缩文件,利用WinRAR提供的RAR.EXE文件做了个批处理内容如下:
---内容----
rar e %1 %2 /y
Del %1 /q
rar a -p%3 -ep %1 %2  阅读全文
posted @ 2007-10-25 12:08 疾风随影 阅读(354) | 评论 (0)编辑 收藏
     摘要: Introduction:

Since we receive a large number of inquiries about XXCOPY's relative
strength and weakness against ROBOCOPY, the administrator's tool
bundled with Microsoft's Windows NT/2000/XP Reseource Kit, this article
was created to contrast the two utilities.

Apparently, ROBOCOPY (which stands for Robust Copy) and XXCOPY both
come from Microsoft's XCOPY utility as the basis for the overall
approach which of course comes from COMMAND.COM's bu  阅读全文
posted @ 2007-10-20 16:31 疾风随影 阅读(1199) | 评论 (0)编辑 收藏
Windows Server 2003内置的命令行文件,适合于XP以上系统
示例:
   forfiles /m *.bkf /d -28 /c "cmd /c del @file /f"
删除当前目录下28天以前的扩展名为bkf文件(以当前系统时间为基准)
posted @ 2007-10-20 15:55 疾风随影 阅读(693) | 评论 (0)编辑 收藏
     摘要: 关闭除csrss.exe、explorer.exe、lsass.exe、smss.exe、services.exe、svchost.exe、winlogon.exe、system、System Idle Process的所有进程  阅读全文
posted @ 2007-10-16 14:50 疾风随影 阅读(417) | 评论 (0)编辑 收藏
仅列出标题
共5页: 1 2 3 4 5