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 07:05
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] Automatic Machine Number and IP Setting Tool 3.0 (Full Version) View 9,654 Replies 69
Floor 31 Posted 2007-12-17 13:41 ·  中国 广东 惠州 电信
新手上路
Credits 4
Posts 2
Joined 2007-08-14 20:49
18-year member
UID 95148
Gender Male
Status Offline
This requires 10 points.
Floor 32 Posted 2007-12-27 17:37 ·  中国 福建 福州 电信
新手上路
Credits 6
Posts 3
Joined 2007-12-22 11:21
18-year member
UID 106445
Gender Male
Status Offline
Oh, dizzy, need points,,, otherwise it's over,
Floor 33 Posted 2007-12-28 15:35 ·  中国 河北 石家庄 联通
初级用户
Credits 27
Posts 13
Joined 2006-12-11 04:34
19-year member
UID 73157
Gender Male
Status Offline
Downloaded - for someone like me who reinstalls frequently - quite a few things
Floor 34 Posted 2007-12-31 20:00 ·  中国 台湾 中华电信(HiNet)数据中心
新手上路
Credits 6
Posts 3
Joined 2007-12-28 18:51
18-year member
UID 107060
Gender Male
Status Offline
Floor 35 Posted 2008-01-07 18:49 ·  中国 北京 鹏博士BGP
新手上路
Credits 3
Posts 3
Joined 2007-11-13 09:02
18-year member
UID 102503
Gender Male
Status Offline
Thanks
Floor 36 Posted 2008-01-08 03:35 ·  中国 广东 东莞 电信
中级用户
★★
Credits 326
Posts 152
Joined 2007-05-04 06:16
19-year member
UID 87412
Gender Male
Status Offline
Originally posted by pan163 at 2007-11-30 01:10 PM:
Good stuff,,, There is a question, what software or tool is used to read the MAC and IP address? Change them one by one manually???



This can be collected

@Echo off
Title Collect your machine's computer name.IP.MAC to prepare for auto-changing IP when burning discs by Bin QQ43142691
For /f "tokens=16" %%a in ('ipconfig/all^|find /i "Host Name"') do (set PcName=%%a)
For /f "tokens=15" %%i in ('ipconfig^|find /i "ip address"') do (set ip=%%i)
For /f "tokens=12" %%b in ('ipconfig/all^| find /i "Physical Address"') do (set mac=%%b)
if not exist new.ini goto new
For /f "tokens=3" %%m in ('type new.ini^|find /i /n "%mac%"') do (set fm=%%m)
if not "%fm%"=="" exit
:ok
Echo.%PcName% %ip% %mac% >>new.ini
Exit
:new
Echo.**********Start collecting*******>>new.ini
goto ok

Or this can also be used

@echo off
color 0a
call :getme "ip address" "ip"
call :getme "Physical Address" "mac"
call :getme "Default Gateway" "gateway"
goto begin
:getme
for /f "tokens=2 delims=:" %%i in ('ipconfig /all^|findstr /i /c:%1') do if not "!%~2!" == "" set "%~2=%%i"
goto :eof
:begin
echo -%ip%-%mac%-%gateway%-
pause
exit


[ Last edited by qq43142691 on 2008-1-8 at 03:36 AM ]
Floor 37 Posted 2008-01-08 23:03 ·  中国 广东 汕头 潮阳区 电信
高级用户
★★★
DOS时空
Credits 713
Posts 348
Joined 2007-02-10 13:59
19-year member
UID 79169
Gender Male
Status Offline
Just change the computer name!
Floor 38 Posted 2008-02-27 00:35 ·  中国 广东 东莞 电信
初级用户
Credits 60
Posts 23
Joined 2007-02-12 12:58
19-year member
UID 79310
Gender Male
Status Offline
Has the internal network number not been modified?
Floor 39 Posted 2008-03-19 15:34 ·  中国 江西 景德镇 电信
新手上路
Credits 7
Posts 4
Joined 2008-03-19 10:18
18-year member
UID 113370
Gender Male
Status Offline
Just reply again and you can get it down.
Floor 40 Posted 2008-03-25 21:58 ·  中国 广东 广州 天河区 电信
新手上路
Credits 6
Posts 3
Joined 2008-03-25 18:36
18-year member
UID 113996
Gender Male
Status Offline
Oh, you have to pay to download it
Floor 41 Posted 2008-03-25 23:52 ·  中国 福建 漳州 电信
新手上路
Credits 8
Posts 4
Joined 2006-06-29 20:42
19-year member
UID 57761
Gender Male
Status Offline
It's making my head spin...
Floor 42 Posted 2008-03-31 05:53 ·  中国 贵州 黔西南布依族苗族自治州 兴义市 电信
初级用户
Credits 42
Posts 21
Joined 2008-03-31 02:56
18-year member
UID 114505
Gender Male
Status Offline
The building host is extremely powerful, continuously supporting...
Floor 43 Posted 2008-03-31 05:54 ·  中国 贵州 黔西南布依族苗族自治州 兴义市 电信
初级用户
Credits 42
Posts 21
Joined 2008-03-31 02:56
18-year member
UID 114505
Gender Male
Status Offline
I want to see the source code, but I don't have enough points. What should I do?
Floor 44 Posted 2008-03-31 05:55 ·  中国 贵州 黔西南布依族苗族自治州 兴义市 电信
初级用户
Credits 42
Posts 21
Joined 2008-03-31 02:56
18-year member
UID 114505
Gender Male
Status Offline
Sorry! I made a mistake by accident. The source code was originally public. I just wanted to see the content inside the compressed package, but I'm still a little short of points...
Floor 45 Posted 2008-03-31 23:11 ·  中国 辽宁 葫芦岛 联通
新手上路
Credits 14
Posts 7
Joined 2008-03-31 21:49
18-year member
UID 114595
Gender Male
Status Offline
I accidentally discovered this thing, and I'll learn about it.
Forum Jump: