CODE: [Copy to clipboard]echo @echo off >a.bat echo netstat -an ^>1.txt >>a.bat echo type 1.txt >>a.bat