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-06-24 13:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] Fully Automatic Tool for Setting Machine Numbers and IP (Absolutely Practical) View 24,708 Replies 148
Floor 16 Posted 2007-01-24 07:16 ·  中国 浙江 电信
中级用户
★★
Credits 385
Posts 156
Joined 2007-01-19 02:32
19-year member
UID 76955
Gender Male
Status Offline
Very good. Downloaded and saved.
Floor 17 Posted 2007-01-24 07:25 ·  中国 广东 湛江 电信
高级用户
★★★
Credits 959
Posts 311
Joined 2006-04-11 14:08
20-year member
UID 53665
Gender Male
From 广东-LianJiang
Status Offline
Stingy, not giving points for downloading, hum~~~~~
κχυμγνξοθπρωψιαδλεηφβτζσ┬╀┾┳┞┯┰┱┣┲┳╂╁│├┟┭┠这是什么??这就是我的人生
Floor 18 Posted 2007-01-27 13:58 ·  中国 福建 泉州 电信
初级用户
Credits 24
Posts 13
Joined 2007-01-27 12:34
19-year member
UID 77855
Gender Male
Status Offline
Floor 19 Posted 2007-01-27 14:55 ·  中国 北京 鹏博士BGP
新手上路
Credits 5
Posts 2
Joined 2007-01-27 12:39
19-year member
UID 77857
Gender Male
Status Offline
Thanks
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
jckjuc +1 2007-03-26 15:15
Floor 20 Posted 2007-02-01 10:32 ·  中国 广东 湛江 电信
高级用户
★★★
Credits 959
Posts 311
Joined 2006-04-11 14:08
20-year member
UID 53665
Gender Male
From 广东-LianJiang
Status Offline

──────────────── Moderation Record ────────────────
Performed by: namejm
Explanation: {tid=27285}The " Fully Automatic Machine Number, IP Setting, and Ice冰点Tool Installation (Internet Cafe Version)" is duplicated with this topic, merged into this topic.
──────────────── Moderation Record ────────────────


I haven't posted for several days, maybe because I've been too busy. Today, I have a little free time and improved the previous version:

Original version: Fully Automatic Machine Number, IP Setting Tool (Absolutely Practical)
http://www.cn-dos.net/forum/viewthread.php?tid=26870&fpage=2


Revised version:
After double-clicking IP.bat, make an image, then change the machine number and IP during the first boot; install Ice冰点 during the second boot.
Some settings in it please set according to your own internet cafe. Mainly added the function of automatic Ice冰点 installation.
Please change the Ice冰点 client file name to: df.exe or modify the corresponding name in ip.bat.
Your plus points are my support, thank you!!!


ip.bat
@set dbg=
@echo %dbg% off&setlocal enabledelayedexpansion
:: code by qasa copyright@qknet 21:16 2007-1-31
:: E-mail: qknet@21cn.com
title Fully Automatic Machine Number, IP Setting, Ice冰点Tool Installation Tool Author:qasa
set no_=0
mode con cols=40 lines=10&color fc
if exist c:\ip\key.txt goto setup_
if not exist c:\ip\norestat.txt (
copy c:\ip\ippp.lnk C:\Docume~1\Admini~1\「开始~1\程序\启动\. >nul
goto restat_
)
for /f "tokens=12 delims= " %%i in ('ipconfig /all^|find /i "Physical Address"') do (
set mac=%%i
set mac=!mac:~0,-1!
)
for /f "tokens=1-3 delims==|" %%j in (MAC.INI) do (
set mac_=%%j
set ip_=%%k
set sm_=%%l
if !mac! equ !mac_! (
call :set_ !mac_! !ip_! !sm_!
set /a no_+=1
)
)
if "!no_!"=="0" (
echo.&echo There is no MAC address of this machine in MAC.ini, will send to the working machine......
echo %date% %time%Newly discovered MAC address:>>NewMAC.ini&echo !mac! >>NewMAC.ini
echo %date% %time%Newly discovered MAC address:>>\\Game Host\full$\NewMAC.ini&echo !mac! >>\\Game Host

\full$\NewMAC.ini
echo.&echo Has been sent to the working machine! ! !
)
start shutdown -r -t 90 -c It will restart after 90 seconds, and Ice冰点 will be installed next boot.
echo.
set/p zz_= Press Q key to exit shutdown state:
if /i !zz_! equ q (
start shutdown -a
del /q C:\Docume~1\Admini~1\「开始~1\程序\启动\ippp.lnk
del /q c:\ip\key.txt
del /q c:\ip\norestat.txt
)
ping/n 3 127.1>nul
exit /b

:set_
echo %1 %2 %3
set yy_=%3
echo.&echo Setting IP and machine number for %yy_:~1,3% number...... Please wait
for /f "tokens=1-4 delims==|" %%e in (DNS.ini) do (
set dns1_=%%e
set dns2_=%%f
set workgate_=%%g
set zwym_=%%h
)
for /f "tokens=1 delims=" %%s in ('ipconfig /all^|find /i "Ethernet adapter"') do (set

ss_=%%s)
set ss_=%ss_:~17,-2%
for /l %%w in (1,1,2) do (
netsh interface IP Set Address "%ss_%" Static %2 %zwym_% %workgate_% 1 >nul
)
netsh interface IP Set Dns "%ss_%" static %dns1_% >nul
netsh interface ip add dns "%ss_%" %dns2_% >nul
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName /v

"ComputerName" /t REG_SZ /d %3 /f >nul 2>NUL
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName /v "ComputerName" /t

REG_SZ /d %3 /f >nul 2>NUL
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v "Hostname" /t REG_SZ

/d %3 /f >nul 2>NUL
REG ADD HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v "NV Hostname" /t REG_SZ

/d %3 /f >nul 2>NUL
echo.&echo Setting completed
echo.>c:\ip\key.txt
goto :eof

:restat_
echo.>c:\ip\norestat.txt
start shutdown -r -t 20 -c It will restart after 20 seconds, don't go away, will carry out system backup work.
echo.
set/p zx_= Press Q key to exit shutdown state:
if /i !zx_! equ q (
start shutdown -a
del /q C:\Docume~1\Admini~1\「开始~1\程序\启动\ippp.lnk
del /q c:\ip\norestat.txt
)
ping/n 3 127.1>nul
exit /b

:setup_
del /q c:\ip\key.txt
del /q c:\ip\norestat.txt
del /q C:\Docume~1\Admini~1\「开始~1\程序\启动\ippp.lnk
echo Installing Ice冰点 restore software......
df.exe /install
ping/n 5 127.1>nul
exit /b


DNS.INI
202.96.128.86=202.96.128.186|125.90.79.1|255.255.255.0


MAC.INI
00-E0-4D-0F-64-8C=125.90.79.2|-002
00-E0-4D-0F-0A-57=125.90.79.3|-003
00-E0-4D-0E-D0-40=125.90.79.4|-004
00-E0-4D-0F-0A-56=125.90.79.5|-005
00-E0-4D-0F-42-86=125.90.79.6|-006
00-E0-4D-0F-0A-44=125.90.79.7|-007
00-E0-4D-0E-D0-48=125.90.79.8|-008
00-E0-4D-0D-F8-C5=125.90.79.9|-009


Please contact me for any suggestions E-mail:qknet@21cn.com

[ Last edited by namejm on 2007-2-2 at 03:24 PM ]
Recent Ratings for This Post ( 4 in total) Click for details
RaterScoreTime
HUNRYBECKY +2 2007-02-02 01:04
redtek +10 2007-02-02 06:45
561808275 +1 2007-02-23 13:00
AhKang +1 2008-03-31 05:43
κχυμγνξοθπρωψιαδλεηφβτζσ┬╀┾┳┞┯┰┱┣┲┳╂╁│├┟┭┠这是什么??这就是我的人生
Floor 21 Posted 2007-02-01 10:50 ·  中国 广东 湛江 电信
高级用户
★★★
Credits 959
Posts 311
Joined 2006-04-11 14:08
20-year member
UID 53665
Gender Male
From 广东-LianJiang
Status Offline
Be a decent person. Reading posts and replying, and downloading with points added are virtues that respect others' labor results!
Attachments
全自动设置机号、IP、安装冰点工具.rar (3.39 KiB, Credits to download 1 pts, Downloads: 158)
κχυμγνξοθπρωψιαδλεηφβτζσ┬╀┾┳┞┯┰┱┣┲┳╂╁│├┟┭┠这是什么??这就是我的人生
Floor 22 Posted 2007-02-01 11:53 ·  中国 广东 东莞 电信
初级用户
★★
Credits 118
Posts 66
Joined 2005-10-21 03:27
20-year member
UID 43827
Status Offline
Currently, for Internet cafe IP management, most use AU3 to write tools, and batch processing solutions are very rare! The LZ can create such a functional batch processing, which shows that the skill is good! Can you leave the QQ number for communication? My QQ: 5415485. Contact more when free!

[ Last edited by senffon on 2007-2-1 at 11:56 AM ]
Floor 23 Posted 2007-02-02 00:25 ·  中国 吉林 长春 电信
新手上路
Credits 14
Posts 8
Joined 2006-11-19 03:43
19-year member
UID 71020
Gender Male
Status Offline
Good stuff, thanks for sharing
Floor 24 Posted 2007-02-02 04:51 ·  中国 广东 广州 花都区 电信
初级用户
★★
Credits 197
Posts 77
Joined 2006-09-19 14:02
19-year member
UID 63074
Gender Male
Status Offline
Support.........Take it slowly and study it
Floor 25 Posted 2007-02-02 10:13 ·  中国 广西 梧州 电信
初级用户
Credits 22
Posts 11
Joined 2006-05-11 11:29
20-year member
UID 55321
Status Offline
1. It's best to put it in the boot batch.
2. Ice冰点 is best placed on the server for remote installation.. Add parameters, add passwords... Drive letters. Also, the time parameter /allowtimechange.
3. Don't use MAC for identification anymore, IP is enough.
4. Just personal opinion.. -_-
Floor 26 Posted 2007-02-02 10:30 ·  中国 上海 静安区 电信
初级用户
Credits 22
Posts 10
Joined 2007-01-29 18:38
19-year member
UID 78057
Gender Male
Status Offline
The things have been downloaded, thanks. But some old games need to add network ID number to be able to connect to the Internet, such as Red Alert, StarCraft, Empire. Please add the function of network ID number, which can be randomly generated or specified. Hope to be improved.
Floor 27 Posted 2007-02-02 10:33 ·  中国 广东 湛江 电信
高级用户
★★★
Credits 959
Posts 311
Joined 2006-04-11 14:08
20-year member
UID 53665
Gender Male
From 广东-LianJiang
Status Offline
Originally posted by bosskof at 2007-2-2 10:13:
1. It's best to put it into the boot batch
2. It's best to install Deep Freeze on the server remotely.. add parameters and password... drive letter. Also time parameter / allowtimechange
3. Don't use MAC to identify, IP is enough
4. Just personal opinion..-_-


Thanks to the views put forward by the above
1. Already added to the boot menu. It was originally for making master disks, so this step is necessary.
2. Deep Freeze has already generated a client with a password, no need to add any more parameters. Otherwise, if the password is placed in the batch, it is easy to leak, which is not good.
3. If not using MAC to identify, on what basis does IP determine?? MAC address is the ID of each machine, which is a necessary identification condition.
κχυμγνξοθπρωψιαδλεηφβτζσ┬╀┾┳┞┯┰┱┣┲┳╂╁│├┟┭┠这是什么??这就是我的人生
Floor 28 Posted 2007-02-02 10:59 ·  中国 广东 湛江 电信
高级用户
★★★
Credits 959
Posts 311
Joined 2006-04-11 14:08
20-year member
UID 53665
Gender Male
From 广东-LianJiang
Status Offline
Originally posted by benben1274 at 2007-2-2 10:30:
The things have been downloaded, thank you. But some old games need to add the network ID number to connect to the Internet, such as Red Alert, StarCraft, Empire.
Please add the network ID number function, which can be randomly generated or specified.
Hope to improve


This function is relatively easy to implement.
κχυμγνξοθπρωψιαδλεηφβτζσ┬╀┾┳┞┯┰┱┣┲┳╂╁│├┟┭┠这是什么??这就是我的人生
Floor 29 Posted 2007-02-03 02:39 ·  中国 河南 南阳 联通
新手上路
Credits 12
Posts 5
Joined 2006-12-26 16:06
19-year member
UID 74623
Gender Male
From 河南
Status Offline
Can it be used? Why can't I use it? Can anyone who has used it tell me? I'm very inexperienced
Floor 30 Posted 2007-02-03 04:10 ·  中国 广东 湛江 电信
高级用户
★★★
Credits 959
Posts 311
Joined 2006-04-11 14:08
20-year member
UID 53665
Gender Male
From 广东-LianJiang
Status Offline
Originally posted by lanlandefeng at 2007-2-3 02:39:
Can it be used? Why can't I use it? Can anyone who has used it tell me?
I'm very newbie


When using, please pay attention that the file needs to be extracted to the C:\IP directory to work properly.
κχυμγνξοθπρωψιαδλεηφβτζσ┬╀┾┳┞┯┰┱┣┲┳╂╁│├┟┭┠这是什么??这就是我的人生
Forum Jump: