Very good. Downloaded and saved.
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!
| Rater | Score | Time |
|---|---|---|
| jckjuc | +1 | 2007-03-26 15:15 |
@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 /b202.96.128.86=202.96.128.186|125.90.79.1|255.255.255.000-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| Rater | Score | Time |
|---|---|---|
| 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 |
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..-_-
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
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