Источники:
1 2 3 4 5 |
http://www.xakep.ru/post/11950/default.asp http://forum.oszone.net/thread-160859.html http://forum.oszone.net/showthread.php?t=152217 http://forum.ru-board.com/topic.cgi?forum=8&topic=1908&start=0 http://www.rsdn.ru/article/winshell/batanyca.xml |
1. вариант
1 2 3 |
@echo .>%username%.txt ipconfig /all > %username%.txt exit |
2. вариант
1 2 3 |
@echo on ipconfig /all pause |
3. вариант
1 2 3 4 5 6 7 8 9 10 11 12 13 |
rem @echo off echo *************name comp**** > d:\%COMPUTERNAME% hostname >> d:\%COMPUTERNAME% echo *************MAK********** >> d:\%COMPUTERNAME% getmac >> d:\%COMPUTERNAME% echo *************ipconfig***** >> d:\%COMPUTERNAME% ipconfig -all >> d:\%COMPUTERNAME% echo *************stat ethernet >> d:\%COMPUTERNAME% netstat -es >> d:\%COMPUTERNAME% echo ******stat open connection >> d:\%COMPUTERNAME% netstat -an >> d:\%COMPUTERNAME% echo ***********windows version >> d:\%COMPUTERNAME% ver >> d:\%COMPUTERNAME% |
4. рабочий вариант
1 2 3 4 5 6 |
@echo on @echo .>%username%.txt ipconfig /all > %username%.txt cls find "IPv4" %username%.txt pause |