找回密码
 加入
搜索
查看: 1758|回复: 0

自动改IP求助!

[复制链接]
发表于 2009-3-31 03:51:38 | 显示全部楼层 |阅读模式
;设置配置文件路径
$Mac2Ip = "Mac2Ip.ini"
If Not FileExists($Mac2Ip) Then
$Mac2Ip = @ScriptDir & "\Mac2Ip.ini"
  If Not FileExists($Mac2Ip) Then
   $Mac2Ip = @WorkingDir & "\Mac2Ip.ini"
  EndIf
EndIf

If Not FileExists($Mac2Ip) Then
MsgBox(64, "出错拉…………", '没有找到配置文件"' & $Mac2Ip & '"' & @CRLF & '或"' & $Mac2Ip & '"不在同一目录下', 15)
Exit
EndIf

$pcname1 = InputBox("BY:傻瓜都一样", '配合迅闪还原修改IP工具' & @CRLF & @CRLF & '请输入正确的计算机名', "", " M63")
;这里差一个计算机前缀,就是$pcname1和$pcname合并写入
If @Error = 0 Then
        RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName","ComputerName","REG_SZ",$pcname)
        RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","NV Hostname","REG_SZ",$pcname)
        RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","Hostname","REG_SZ",$pcname)       
EndIf
后面详细想法:
修改IP:$pcname就是IP的后缀,
读取Mac2Ip.ini里面的
[Setting]
IP="192.168.0."
Mask="255.255.255.0"
GateWay="192.168.0.1"
DNS1="61.144.56.100"
DNS2="61.144.56.101"
最后导入CS1.5cdkey,这里也是读取配置文件Mac2Ip.ini里面的
[Cs15Key]
1=6801563651288
2=3294345689725
3=2292823454228
4=7842715618877
5=3865568763903
6=5013955315983
7=3094945136861
8=2726631268402
9=1421339652155
10=2293026703085
11=1977560827768
12=2996620270749
13=0072430366426
14=7893392675840
15=2623436581467
16=2367234335487
17=5899430794142
18=6373906794557
19=0186166087129
20=9309282185282
21=9942810937876
22=2702926069367
23=2873922711009
24=3182452724788
25=2881320716061
26=3882348620722
27=2498521763020
28=9745406730972
29=3995846325049
30=3990645369061
31=3881442673780
32=4722953384569
33=5991335738183
34=0943245009979
35=0057329934856
36=7597026797903
37=1509899106786
38=9080368774300
39=2306437281560
40=8047751630688
41=2572265422347
42=2897524202721
43=9525803960507
44=3896321644454
45=2575508916775
46=3832845609762
47=5109677149369
48=2007224885708
49=2304525119809
50=0700233570541
51=3892248363021
52=3049152178425
53=0143005967914
54=5895638781104
55=5512355833199
56=2348134376448
57=3005789616110
58=2492629725023
59=7169336493198
60=5498338402186
61=2810029507117
62=8295771797102
63=1320904578028
64=5531764511342
65=5898238712127
66=5998632785122
67=0514846371932
68=0416231170064
69=3015038603991
70=2120338265425
71=9589846712664
72=3667588858575
73=5464829472848
74=2833689982865
75=3997145348020
76=2494731044643
77=1150596958039
78=3398042694766
79=3799042684746
80=2701338554560
81=4879687250041
82=2128042478263
83=3578243538587
84=3096244508581
85=4336435699588
86=2317233759548
87=2727132555486
88=6996551041203
89=0463262884916
90=2792231045626
91=1154247940716
92=2344284682451
93=2146333363483
94=7040402632368
95=5555142687861
96=3922648525588
97=2498020435749
98=8039436549949
99=2696734026608
100=2396032072643
101=5634030696618
102=8362321875446
103=9748585333927
104=9539130852949
105=9724143611498
106=9035730237150
107=1765628747642
108=8267335625064
109=9872308440938
110=0040945670291
111=7437120445097
112=2914557016520
113=5201939075592
114=7023459460265
115=0004084032358
116=2579488650504
117=1435403495605
118=5722891164576
119=5812923357220
120=0684570142794
121=9051295359780
122=0766160464649
123=6023089585711
124=7282726715071
125=6965198320844
126=0590638349985
127=4887920308855
128=6224273676938
129=0234070701672
130=6829133462999
131=1514397024359
132=0338114504295
133=9180097837863
134=5695926015450
135=3160620118964
136=1190096475687
137=8359933291311
138=2696985056117
139=7853809758364
140=2111724559521
141=0578332166402
142=5735257958665
143=7914860615387
144=4063606421917
145=3419830076512
146=7381489152175
147=1628431817077
148=2876552803407
149=8856983770314
150=7530358675181
151=5174560117316
152=7322581102730
153=0719965552707
154=5620798081913
155=3185381184427
156=8680457335754
157=9869960983369
158=6915151587317
159=1272066388570
160=9301433546382
161=5817471724979
162=7946642797514
163=3926072554435
164=9956746016428
165=0590651353471
166=1714170985947
167=5499802054656
168=1163480853697
169=3739923265822
170=3354655249230
171=1204514178341
172=8144711732971
173=8451579776433
174=8206536922064
175=7267404852062
176=6365487067597
177=4919689608720
178=2960547428824
179=0504759069059
180=3050776320471
181=0694888961606
182=9655746791606
183=9610972107773
184=7937556243769
185=5898414073778
186=8334441434100
187=5988643975322
188=3522855506549
189=2721837712087
190=0375939353208
191=8326908182312
192=0058411868073
193=7386866002317
194=9415036075966
195=9415034784963
196=9268017928447
197=2554301377411
198=6199709193805
199=6595690064434
200=8764101331054
201=8695699602249
202=3953514404409
203=6308441865835
204=5438918032640
205=3567485290466
206=8052441431786
有高手帮下忙吗?
QQ:261853278
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-12-24 08:11 , Processed in 0.072629 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表