배치파일

systeminfo_to_tel

by 관리자 posted Dec 31, 2016
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

c:
cd\
cls


for /f "tokens=1-2 delims=:" %%a in ('ipconfig^|find "IPv4"') do set ip=%%b
set ip=%ip:~1%

for /F "tokens=2 delims==" %%s in ('wmic bios get serialnumber /value') do set sn=%%s

echo IP address : %ip%

echo Computer Serical Number : %sn%

set file5=\\192.168.4.157\samba\OA_Administrator\_System_info\%ip%_%sn%_tel.txt


timeout 15


wmic bios get serialnumber > %file5%

wmic computersystem get "Model","Manufacturer" >> %file5%

wmic computersystem get "Name", "UserName" >> %file5%

wmic cpu get name >> %file5%

wmic PATH Win32_PhysicalMemory  get capacity >> %file5%

wmic os get name >> %file5%

wmic os get installdate >> %file5%

wmic nicconfig get ipaddress,caption >> %file5%

wmic nicconfig get macaddress,caption >> %file5%


forfiles /p "C:\mpc\app_log" /d 0 /m *.log /c "cmd /c type @file > >> %file5%"


cls

exit